Installing Dependencies SciKit/NumPy/SciPy - linux

I'm trying to install SciKit learn on a Red Hat Server. According to documentation on Scikit-Learn's website, I can run the following command on Red Hat to install the the dependencies.
sudo yum -y install gcc gcc-c++ numpy python-devel scipy
However, I don't have root privileges, so I am wondering if I can some how modify the above command to run the command?

No, you cannot modify the package base of your system since you are not root and not in sudoers list.
However, you can try to build that packages from sources, but I'm sure that you will come across a lack of *devel packages but you will not manage to install them due to the same reason.

Related

Installing software package developed for AMD64 when my PC has ARM64 architecture

I'm somewhat of a linux noob, but I'm trying to use a microcomputer with aarch64 Architecture. I am trying to download software using wget and a Public Cert Key for software developed for x64/AMD64. When I try to run
sudo apt-get install <package>
I get:
E: Unable to locate package <package>
I am assuming it is because it was developed for AMD64. From everything I've found, I think I need a cross compiler to translate the binary from AMD to ARM,but nothing I've found has helped me get any closer to actually installing my desired package. Can anyone give me an ELI5 version or point me in the direction of how to educate myself better on system architectures?
You may have better luck using update command:
sudo apt-get update
to upgrade packages lists
sudo apt-get search <generic name of package>
and then
sudo apt-get install <package name found in search>
The generic name I mean "apache" instead of "apache-php-modlib"

How to install python3-devel on red hat 7

I am trying to install something in my virtual environment, which uses anaconda python 3.6. I get the gcc failed with exit status 1, hinting on the absence of the right python3-devel package, as described in error: command 'gcc' failed with exit status 1 while installing eventlet.
To fix the error, I tried to install the python3-devel package on my server running RHEL 7.3.
I did yum install python3-devel, but got a 'package not found' error. Then I found https://serverfault.com/questions/710354/repository-for-python3-devel-on-centos-7, which hints to the python34-devel package in the EPEL repository. I installed it using yum, but upon trying to install something in my virtual environment, I still get the gcc failed with exit status 1 error.
Does someone know how I can fix this? All help would be much apprechiated.
Search for the package in yum , use the following command:
yum search python3 | grep devel
It will list all the available devel packages. The result will be somewhat like this
python3-cairo-devel.x86_64 : Libraries and headers for python3-cairo
python3-devel.x86_64 : Libraries and header files needed for Python 3
: development
python34-devel.x86_64 : Libraries and header files needed for Python 3
: development
Then you can choose the package you want to install from the list , suppose if you want to to install python3-devel , execute the following
yum install -y python3-devel.x86_64
I thought I might update this for 2020. As of RHEL 7.7, python-devel is not available in EPEL, it has been retired by Fedora Project. All I wanted for today was the python h files, and this got me there:
# yum install python3-devel.x86_64 --enablerepo=rhel-7-server-optional-rpms
We do have one of the Redhat No-Cost Developer licenses, but I am not sure that is required for the optional-rpms.
PS, this was helpful in verifying which packages of interest were in optional-rpms
# yum repo-pkgs rhel-7-server-optional-rpms list | grep python3
There are no python3-* packages from Red Hat in Red Hat Enterprise Linux 6 or 7.
However there are python3-* packages available if you enable third party repos like EPEL or IUS. But, these are not supported by Red Hat. Chances are if you are running RHEL, your organization has a preference for supported packages.
You can get supported Python 3 packages from Red Hat via Red Hat Software Collections (RHSCL). Currently Python 3.6 is the newest available, the package name is rh-python36. Installing the RHSCL package will also install rh-python36-devel and a number of other packages.
See How to install Python 3, pip, venv, virtualenv, and pipenv on RHEL
Don't forget to install #development first, so you have gcc, make, etc. for building any dynamically loaded shared objects.
To install:
$ su -
# subscription-manager repos --enable rhel-7-server-optional-rpms \
--enable rhel-server-rhscl-7-rpms
# yum -y install #development
# yum -y install rh-python36
# yum -y install rh-python36-numpy \
rh-python36-scipy \
rh-python36-python-tools \
rh-python36-python-six
# exit
The blog linked above has lots of tips for working with Python, virtual environments, as well as software collections on Red Hat.

gcc-4.7 with Debian 8 Jessie

I use debian 8 Jessie, which has only gcc-4.9 available in the repositories. I tried to install gcc-4.7 in two ways without success.
First try
I tried installing gcc manually by downloading the file gcc-4.7.0.tar.gz
But when I install the dependency libraries (apt-get install Libmpc-dev libmpfr-dev libgmp-dev gcc-multilib)
the Debian installs, without asking gcc-4.9 and the compatible libraries with gcc-4.9.
I try run make for manual installation, but errors occur and it is not possible to install manually.
Second Try
I tried adding PPA repositories with gcc-4.7, in the file /etc/apt/sourc.list
Add-apt-repository ppa: ubuntu-toolchain-r / test as it teaches in this Link: https://askubuntu.com/questions/193513/problem-adding-a-ppa-to-install-gcc-4-7
When try apt-get install gcc-4.7 you are prompted to install several Dependencies ... when requesting to install the dependencies, the Below.
Root # vmhp110deb8: / home / user1 # apt-get install gcc-4.7 gcc-4.7-base
Reading package lists ... Done
Building dependency tree
Reading state information ... Done
Note, by selecting 'gcc-4.7-base' for regex 'gcc-4.7'
Package gcc-4.7-base is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
Is available from another source
E: Package 'gcc-4.7-base' has no installation candidate
Root # vmhp110deb8: / home / user1 # add-apt-repository ppa: ubuntu-toolchain-r / test
I tried to find a repository that has gcc-4.7-base, but then it asks Installation of other dependencies, and informs that it has not found
Libraries are Obsolete, etc.
Attempt not yet tested
Another idea that i had is download the Debian 7 Wheezy DVD (which I think Which has gcc-4.7 and all dependencies) and add as repository, For debian to find all dependencies of gcc.4.7 on DVD. But this idea i not have tested yet.
Could anyone help me with how I could install gcc 4.7 on debian 8?
As you can read here
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=765379
gcc-4.7 is not included in Debian Jessie
Maybe you can try this
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-4.7
EDIT : You already tries this. I didnt notice.
Try this manual:
http://charette.no-ip.com:81/programming/2011-12-24_GCCv47/
I hope this helps to you :)

System crash after oracle installation with yum

recently i tried to install oracle on my linux with apt (I never used yum before) using fast manual:
http://www.oracle.com/technetwork/articles/servers-storage-admin/ginnydbinstallonlinux-488779.html
And after command:
sudo yum install oracle-rdbms-server-11gR2-preinstall
I got error:
Failed: ca-certificates.noarch 0:2010.63-3.el6_1.5 chkconfig.x86_64 0:1.3.49.3-2.el6 file-libs.x86_64 0:5.04-15.el6 filesystem.x86_64 0:2.4.30-3.el6
initscripts.x86_64 0:9.03.38-1.0.1.el6_4.2
Complete!
And something gone wrong because command like: ps, top are crashing
login#Ass-K55VJ:/etc/yum/repos.d$ ps -e
ps: relocation error: ps: symbol procps_number_version, version _3_2_5 not defined in file libproc-3.2.8.so with link time reference
login#Ass-K55VJ:/etc/yum/repos.d$ top
Segmentation fault (core dumped)
then I tryied to uninstall oracle and dependencies but after command:
sudo yum remove oracle-rdbms-server-11gR2-preinstall
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
No module named yum
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.6.6 (r266:84292, Jul 10 2013, 06:42:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)]
If you cannot solve this problem yourself, please go to the yum faq at: http://wiki.linux.duke.edu/YumFaq
So it seems like yum install in my system new libraries but didn't link it correctly? I dont know what do in this moment because it seems like armagedon on my ubuntu...
Does this mean you're on ubuntu and tried to install rpm packages using yum? The manual you used is for Oracle Linux 6, why would you try that on ubuntu?
rpm packages are not compatible with debian based systems like ubuntu, which use deb packages. So you've probably screwed your system big time, overwriting important system libraries with incompatible ones.
If apt-get is still working, then you can try to reinstall (apt-get --reinstall install) the equivalent libraries to the ones mentioned in the install manual you linked to - naming isn't always the same for rpm and deb packages. dpkg -l should help you see which the correct installed libraries are. I'd start with the C libraries (libc) etc.
But if apt-get is screwed also, then you'd need to download the packages manually from an ubuntu mirror and install them using dpkg, but I think a reinstall (or restore from backup if you have one) would be the best option.

how to get/download yum development tools for ubuntu?

I need to build yum package in ubuntu for Stress 1.0.2 application in ubuntu . I am i beginner and provide me Links to download and learn building an yum installer package.
Beware that RPM/yum packages rarely work properly on Ubuntu/Debian systems.
If you want to try it anyway, you can use the alien tool to convert the RPM into a DEB, then you can use dpkg or gdebi-gtk to install it. The homepage of alien is http://kitenet.net/~joey/code/alien/ and you can install it with apt-get install alien.
Edit: why do you want to use the RPM package given that you can install stress and stressapptest from the Ubuntu repositories?

Resources