-
Notifications
You must be signed in to change notification settings - Fork 151
Install requirements varius fixes for various systems.
This is tested on fedora 25. Upgrade your system to the latest version.
To upgrade to fedora 25.
sudo dnf upgrade --refresh
sudo dnf install dnf-plugin-system-upgrade
sudo dnf system-upgrade download --refresh --releasever=25
sudo dnf system-upgrade reboot
I just did a history 100 for the commands that made it work. I did tons of stuff that fixed the errors for me but here is the most important ones.
I did not have a command called python3 and python3.5 was installed on the system so i did:
sudo dnf reinstall python3.5
sudo dnf reinstall python3
Install the gcc-python3-plugin
sudo yum install gcc-python3-plugin
Install redhat-rpm-config
sudo dnf install redhat-rpm-config
Install zlib-devel
sudo dnf install zlib-devel
Find out if you have an LD error
sudo LD_DEBUG=all make
sudo ls -lzlib --verbose
If you do you need to make some symlinks i did the following on a 64bit system.
locate libz.so
sudo ln -s /usr/lib64/libz.so.1.2.8 /usr/lib64/libzlib.so
locate python3.5m
sudo ln -s /usr/lib64/libpython3.5m.so.1.0 /usr/lib64/libpython3.5m.so
And now everything should be working. For somereason python on fedora does only install .so.version number files but gcc need just the .so file so symlinks will fix this.
Installing Requirements in FreeBSD. (This guide only covers pycryptodomex and newer versions of monocle could need other stuff to install)
When you try to do pip install -r requiremenst.txt in freebsd you will get a long error that comes back to alloca.h Its a dependency that cannot be met due to the fact that alloca.h is not a part of free bsd. But luckily it is not needed either. What you do is you download pycryptodomex and remove the #include alloca.h.
sudo pip3 download pycryptodomex
tar zxvf pycryptodomex-3.4.3.tar.gz
rm pycryptodomex-3.4.3.tar.gz
cd pycryptodomex-3.4.3/src
vi pycrypto_common.h
remove the line with #include <alloca.h> (in my case line 48) save and exit. (:wq)
Repack the pycryptodomex-3.4.3 folder.
tar -zcvf pycryptodomex-3.4.3.tar.gz pycryptodomex-3.4.3/
now you should be all set to install pycryptodomex using the following command
sudo pip3 install pycryptodomex-3.4.3.tar.gz
After this you should be able to do sudo pip3 install -r requirements.txt and get the rest of the dependencies.