Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
A link is not a real solution.
...
So correct is : Install zlib-devel or whatever name it has on your OS.
I completely agree with this. In my case, as far as I could tell, the installer (RPM) was supposed to set a link, for that particular library. That is not always the case, however.
You should definitely try to install the -dev or -devel package if possible.
trying to give make command to our project. But when we are giving make command in ubuntu it gives an error that saying /usr/bin/ld: cannot find -lmysqld
But installed mysql in ubuntu and all necessary headers.
# python setup.py build
running build
running build_ext
building 'cx_Oracle' extension
creating build
creating build/temp.linux-x86_64-2.7-11g
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/tmp/instantclient_11_1/sdk/include -I/usr/local/include/python2.7 -c cx_Oracle.c -o build/temp.linux-x86_64-2.7-11g/cx_Oracle.o -DBUILD_VERSION=5.1.1
In file included from /tmp/instantclient_11_1/sdk/include/oci.h:2968,
from cx_Oracle.c:10:
/tmp/instantclient_11_1/sdk/include/ociap.h:10700: warning: function declaration isnāt a prototype
/tmp/instantclient_11_1/sdk/include/ociap.h:10706: warning: function declaration isnāt a prototype
creating build/lib.linux-x86_64-2.7-11g
gcc -pthread -shared build/temp.linux-x86_64-2.7-11g/cx_Oracle.o -L/tmp/instantclient_11_1 -lclntsh -o build/lib.linux-x86_64-2.7-11g/cx_Oracle.so
/usr/bin/ld: cannot find -lclntsh
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
#
the compiler was looking for "libclntsh.so" and we have libclntsh.so.11.1, i just created sym link libclntsh.so pointing to libclntsh.so.11.1 and added PATH variable with location of that .so file and it found the lnctsh symbol and it compile without error.
python
Python 2.7.2 (default, Nov 8 2011, 13:38:58)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-51)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import cx_Oracle
>>>
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.