How to install gcc3.4 on a new Ubuntu OS? - gcc

How to install gcc3.4? I need this version to compile u-boot sources which seem to take older version of gcc.
I have a fresh install of 0S - Ubuntu-mate 14.04.2-LTS, which I am using to install gcc3.4. I do not have any pre installed gcc on this.
When I tried the command:
$sudo apt-get install gcc-3.4
I am getting the error:
E: Unable to locate package gcc-3.4
E: Couldn't find any package by regex 'gcc-3.4'

Related

How can I install libdouble-conversion-dev on Ubuntu 18.04?

I tried installing the libdouble-conversion-dev package using sudo apt-get install libdouble-conversion-dev but failed with the following output:
Package libdouble-conversion-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libdouble-conversion-dev' has no installation candidate
I have also tried running sudo apt-get update beforehand and got the same results, as well as installing from the debian file from https://packages.debian.org/buster/amd64/libdouble-conversion-dev/download but nothing seemed to have changed.
You can manually install a Debian package on a compatible Ubuntu host with sudo dpkg -i $name_of_package_file.

Cannot install deepdive dependencies on Ubuntu 20.4

I tried installing DeepDive using the code in http://deepdive.stanford.edu/quickstart.
I couldn't install DeepDive, so I installed Deepdive_from_releases Then I tried to install dependencies, but there was an error.
Error I got
I installed python software-properties-common but still not working.

ERROR:Failed building wheel for h5pyFailed to build h5pyERROR:Could not build wheels for h5py,which is required toinstall pyproject.toml-basedprojects

I'm getting this error when I'm running the following command to install tensorflow.
python3 -m pip install tensorflow-macos
ERROR: Failed building wheel for h5py
Failed to build h5py
ERROR: Could not build wheels for h5py, which is required to install pyproject.toml-based projects
I tired to install this wheel manually, from the official link (https://pypi.org/project/h5py/#files), it got installed properly but I'm still getting the same error.
I'm facing the above issue in Mac Book M1 chip.
The official doc to use brew install.
$ brew install hdf5
If the above command gives you rosetta 2 issue, then run:-
arch -arm64 brew install hdf5
Once, the h5py installation is done, run following 2 commands:-
$ export HDF5_DIR=/opt/homebrew/Cellar/hdf5/1.12.0_4 OR export HDF5_DIR=/opt/homebrew/opt/hdf5 (if hdf5 is installed in the "/opt/homebrew/opt/hdf5" location, you have to check it out first)
$ pip install --no-binary=h5py h5py
Note:- in the first command "1.12.0_4" is the version of hdfc installed in my system, you have to change it according to yours.
If you are getting the aforementioned error implies you must be using poetry.
Finally run:-
poetry install
We are running the above command, In case poetry wants to update anything.
Once we run poetry install, it might update existing libraries or download new libraries.
So we have to update poetry.lock file as well.
poetry lock
After installing hdf5 try "export HDF5_DIR=/opt/homebrew/opt/hdf5"
Ref: https://github.com/h5py/h5py/issues/2035#issuecomment-1028226141
This works for me:
Install brew (https://brew.sh/)
brew install hdf5
export HDF5_DIR=$(brew --prefix hdf5) (as #sgt pepper said)
pip install --no-binary=h5py h5py

Why cant I run apt install on mac?

When I type apt install ffmpeg in Terminal, (I am using the latest Mac OS update) I get following error: Unable to locate an executable at "/Library/Java/JavaVirtualMachines/jdk-13.0.1.jdk/Contents/Home/bin/apt" (-1)
How do I solve that?
So, by default Mac does not support APT commands (APT and YUM are available in linux).
if you want to install ffmpeg, you can follow the instructions on following link:
https://sites.duke.edu/ddmc/2013/12/30/install-ffmpeg-on-a-mac/
instead of apt install, what is used in mac is homebrew or macports for more knowledge please refer to the following link:
https://unix.stackexchange.com/questions/80711/how-to-install-apt-get-or-yum-on-mac-os-x

Trying to install libsndfile on Ubuntu 16

I've tried running
sudo apt-get install libsndfile
> E: Unable to locate package libsndfile
So then I try
sudo apt-get install libsndfile1
It installs, but where, how?
find /usr/ -name libsndfile*
> /usr/lib/x86_64-linux-gnu/libsndfile.so.1
> /usr/lib/x86_64-linux-gnu/libsndfile.so.1.0.25
At the end of the day my goal is to get the lib to work for ruby, with either:
gem install sndfile
gem install ruby-audio
When I try installing ruby-audio, I get:
extconf.rb:21:in `<main>': Can't find libsndfile (http://www.mega-nerd.com/libsndfile/) (RuntimeError)
So for some reason the library doesn't install properly.
When you want to compile something against a library you'll need not only the library itself, which is usually one or more .so type files, but the header files that describe how the library works. These are often omitted unless you install the -dev version of the package:
apt-get install libsndfile-dev
This should give the Ruby extconf.rb enough information to compile and link against that library.

Resources