After installing python 2.7.13 version can't find run python, because python library not found :
then I tried install link with following line:
ln -s /opt/rh/python27/root/usr/bin/python2/libpython2.7.so.1.0 /lib64/libpython2.7.so.1.0
then try again, appears following error:
python: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: Error 20
Then I reinstall all python libraries by this link: https://centos.pkgs.org/6/ius-i386/python27-libs-2.7.13-2.ius.centos6.i686.rpm.html
python via terminal works now, but then run bash script vi crontab not works, anybody know why?
Related
I want to compile python3 from source so I followed the instructions.
However, during the make command I get the error
./Modules/zlibmodule.c:10:18: fatal error: zlib.h: No such file or directory
How do I solve this without having to install zlib as I do not have root access. Is there a way to skip this file while compilation?
You can try and use python-dev instead, it includes header files, a static library and development tools for building Python modules, extending the Python interpreter or embedding Python in applications. To install this package, enter:
For Python version 3.x+
$ sudo apt-get install python3-dev
I know I'm missing something obvious here but...
After following the installation instructions for PlatformIO (using the install script):
$ platformio
gives
command not found: platformio
Same results using pip install platformio (probably what the script uses in the first place, but I thought I'd try anyways)
Please config your CLI tools via this methods:
https://docs.platformio.org/en/latest/installation.html#install-shell-commands
for example:
export PATH=$PATH:~/.platformio/penv/bin
see the link for details
I am building h5py on Mac, following instructions "Building against Parallel HDF5" in this link: http://docs.h5py.org/en/latest/build.html
$ export CC=mpicc
$ python setup.py configure --mpi
$ sudo python setup.py build
I get this error:
h5py-2.5.0/h5py/api_compat.h:27:10: fatal error: 'hdf5.h' file not found
What should I do? If I need to install some dev version of HDF5, how can I do it on Mac?
I was getting this same error message yesterday, doing a general installation of HDF5 (not building against parallel). I was able to get around it by using Homebrew (a package manager for OS X that can be found here: http://brew.sh/).
Once you've installed Homebrew (if you don't already have it), the command is brew install hdf5.
You can find hdf5.h lib in your Unix and set in CPATH varible
freebsd 11 example:
>> find /usr -iname "*hdf5.h*"
<< /usr/local/include/hdf5.h
>> export CPATH="/usr/local/include/"
Then you can compile that you need
I need to run Python 2.7 on my Mac Snow Leopard, which has Python 2.6 installed. According to this answer, running the Python 2.7 mpkg installer from Python.org should get me there.
The reason I need to do this is that I'm trying to run the Google App Engine SDK for the Python 2.7 runtime.
After installing Python 2.7, I'm still getting the following warning in my GAE server log:
Warning: You are using a Python runtime (2.6) that is older than the
production runtime environment (2.7).
What else must I do to get the GAE SDK to recognize the new Python version?
EDIT 2:
Running:
$ sudo find / -name python2.7
I get:
/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/usr/local/bin/python2.7
According to the answers I went into GoogleAppLauncher -> Preferences and set the Python path to each of these, and each time I get the exact same error.
Running dev_appserver with the following flags:
--admin_console_server= --port=8081 Python command: /Library/Frameworks/Python.framework/Versions/2.7 2011-11-14
16:12:24.726 GoogleAppEngineLauncher[57590:203] *** NSTask: Task
create for path '/Library/Frameworks/Python.framework/Versions/2.7'
failed: 22, "Invalid argument". Terminating temporary process.
Another Wierd thing is, it always tries to resolve to the same path, no matter which of those I plug in; It always reverts to /Library/Frameworks/Python.framework/Versions/2.7
EDIT 3:
OK, after entering the paths into the prefs field repeatedly, I finally just cleared it out, and somehow it's now pointing to the right place:
Running dev_appserver with the following flags:
--admin_console_server= --port=8081
Python command: /usr/local/bin/python2.7
Open the GAE launcher preferences and set the Python Path option to the fresh installed Python 2.7, in your case /usr/local/bin/python2.7 .
Came across this question looking for a solution to the same dilemma regarding Mac, GAE and Python.
One comment I would like to make regarding setting the Python path using GAE Preferences. I notice you mention that you had a problem setting the Python path using the Preferences. I discovered that after editing the path, you have to press Enter. Otherwise, the path doesn't get updated. This might explain the weirdness you were mentioning when trying to edit the path field.
I installed python 2.7.x from macports. I see this:
$ python --version
Python 2.7.2
$ which python
/opt/local/bin/python
So, in the preferences for GoogleAppEngineLauncher.app I set the python path to:
/opt/local/bin/python
In the console log, I see this:
*** Running dev_appserver with the following flags:
--admin_console_server= --port=8081
Python command: /opt/local/bin/python
I still see some errors about libraries, in particular Can't open zipfile...setuptools but simple stuff at least seems to work.
Good luck!
I am not sure if it helps, but instead of using the binaries from Python, I used MacPorts http://www.macports.org/ and installed the Python 2.7 runtime:
sudo port install python27
Did anybody ever installed wkhtmltopdf on Fedora 14?
On http://code.google.com/p/wkhtmltopdf/wiki/compilation there is a step by step for Debian. In the comments, there is also something similar to CentOS.
Till now I have installed:
Development Tools
openssl-devel libXrender-devel libXext-devel libXft-devel
QT (qt.x86_64 qt-devel.x86_64 qt-webkit.x86_64)
git
And I have also downloaded wkhtmltopdf from git:
git clone git://github.com/antialize/wkhtmltopdf.git wkhtmltopdf
However, the last steps are driving me crazy. Here's where So I need some help:
Compiling and installing wkhtmltopdf Now all you need to do is compile and install wkhtmltopdf
make && make install
Here's the wkhtmltopdf folder:
NEW UPDATE:
After running cd wkhtmltopdf && qmake-qt4 && make as normal user, here's what I got:
Then, I searched again for some qt packages I should have and ended with this group:
qt-webkit-devel.x86_64 php-qt-devel.x86_64 qt-x11.x86_64 qtnx.x86_64
Then, again, I ran qmake-qt4 && make and this time it passed with no errors.
Finally, I ran sudo make install and it also passed with no errors.
However, when I ran wkhtmltopdf -h it returns:
wkhtmltopdf: error while loading shared libraries: libwkhtmltox.so.0: cannot open shared object file: No such file or directory
So, I decided to go all way compiling QT, following exactly the instructions. At the end, I got the same error:
$ wkhtmltopdf -h
wkhtmltopdf: error while loading shared libraries: libwkhtmltox.so.0: cannot open shared object file: No such file or directory
Any help would be great.
Thanks!
wkhtmltopdf want libwkhtmltox.so.0 lib. But search it into /lib64 directory.
You can :
cd /lib64
ln -s /lib/libwkhtmltox.so.0 libwkhtmltox.so.0
wkhtmltopdf -h
is ok after that.
(sorry for my english...)
You missed the part where you have to run qmake.
cd /lib64
ln -s /lib/libwkhtmltox.so.0 libwkhtmltox.so.0
This also worked on CentOS release 6.2 (Final)
The error :
wkhtmltopdf: error while loading shared libraries: libwkhtmltox.so.0: cannot open shared object file: No such file or directory
can also be caused by the miss of Xorg, then you can install it for example on Debian :
apt-get install xorg