Mac Network C++ Ld Library Not Found For Include Lnsl

  1. When linking the program to MKL library, for some MKL versions, cmake may have problems to find the correct MKL libraries. Setting LDLIBRARYPATH to include the MKL dynamic libraries sometimes can help cmake to find the MKL libraries, e.g.
  2. 2020-2-13  I am new to Perl and I work in a Linux OEL 5x server. I am trying to configure the Perl DB modules for Oracle connectivity (DBD and DBI modules).
  3. Tom, Michael, List, Thank you for the replies, I've got it working.incase anyone else reading (or for the archives) the fix is: for the '-with-libs' parameter add the location of both readline.
  4. Apr 08, 2011 Re: libc and libthread not found Steve.Clamage-Oracle Apr 8, 2011 4:17 PM ( in response to 853328 ) Your are trying to link the default system libraries -lthread and -lc statically (due to the -Bstatic near the end of the command line).
I am a newbie to Linux and tried to install Otcl 1.8 in RH9. I downloaded the tar file from the website and installed it as the README, but I can not pass the test after the installation. It is said 'error while loading shared libraries: libtk8.4.so: cannot open shared object file: No such file or directory'. What should I do to solve the problem?
Any help here would be greatly apreciated. Thanks a lot in advance.
the whole install procedue is as below:
[root@79-9 otcl-1.8]# ./configure
No .configure file found in current directory
Continuing with default options..
checking build system type.. i686-pc-linux-gnu
checking host system type.. i686-pc-linux-gnu
checking target system type.. i686-pc-linux-gnu
checking for gcc.. gcc
checking for C compiler default output.. a.out
checking whether the C compiler works.. yes
checking whether we are cross compiling.. no
checking for executable suffix..
checking for object suffix.. o
checking whether we are using the GNU C compiler.. yes
checking whether gcc accepts -g.. yes
checking for g++.. g++
checking whether we are using the GNU C++ compiler.. yes
checking whether g++ accepts -g.. yes
checking how to run the C preprocessor.. gcc -E
checking for ANSI C header files.. yes
checking for string.h.. yes
checking for main in -lXbsd.. no
checking for socket in -lsocket.. no
checking for gethostbyname in -lnsl.. yes
checking for dcgettext in -lintl.. no
checking for getnodebyname in -ldnet_stub.. no
checking that g++ can handle -O2.. no
checking standard STL is available.. no
checking for tcl.h.. -I./tcl8.4.5/generic
checking for libtcl8.4.. -L./tcl8.4.5/unix -ltcl8.4
checking for init.tcl.. ./tcl8.4.5/library
checking for tclsh8.4.5.. no
checking for tclsh8.4.. /usr/local/bin/tclsh8.4
checking for tk.h.. -I./tk8.4.5/generic
checking for libtk8.4.. -L./tk8.4.5/unix -ltk8.4
checking for tk.tcl.. ./tk8.4.5/library
checking for X11 header files
checking for X11 library archive
checking for XOpenDisplay in -lX11.. no
checking for libXext.a
checking for ranlib.. ranlib
checking for a BSD compatible install.. /usr/bin/install -c
checking system version (for dynamic loading).. Linux-2.4.20-31.9
No explicit static compilation flag; setting V_STATIC to '
checking for dlopen in -ldl.. yes
checking for a BSD compatible install.. /usr/bin/install -c
configure: creating ./config.status
config.status: creating Makefile
[root@79-9 otcl-1.8]# make all
rm -f libotcl.a otcl.o
gcc -c -g -O2 -DNDEBUG -DUSE_SHM -I. -I/home/zhqun/tk8.4.5/generic -I/home/zhqun/tcl8.4.5/generic -I/include otcl.c
ar cq libotcl.a otcl.o
ranlib libotcl.a
rm -f libotcl.so otcl.o so_locations
gcc -c -g -O2 -DNDEBUG -DUSE_SHM -fpic -I. -I/home/zhqun/tk8.4.5/generic -I/home/zhqun/tcl8.4.5/generic -I/include otcl.c
ld -shared -o libotcl.so otcl.o
rm -f libotcl.so
gcc -o otclsh -g -O2 -I. -I/home/zhqun/tk8.4.5/generic -I/home/zhqun/tcl8.4.5/generic -I/include otclAppInit.c
-L. -lotcl -L/home/zhqun/tk8.4.5/unix -ltk8.4 -L/home/zhqun/tcl8.4.5/unix -ltcl8.4 -L/usr/X11R6/lib -lXext -lX11 -lnsl -ldl -lm
rm -f libotcl.so
gcc -o owish -g -O2 -I. -I/home/zhqun/tk8.4.5/generic -I/home/zhqun/tcl8.4.5/generic -I/include otkAppInit.c
-L. -lotcl -L/home/zhqun/tk8.4.5/unix -ltk8.4 -L/home/zhqun/tcl8.4.5/unix -ltcl8.4 -L/usr/X11R6/lib -lXext -lX11 -lnsl -ldl -lm
[root@79-9 otcl-1.8]# make install
rm -f libotcl.so otcl.o so_locations
gcc -c -g -O2 -DNDEBUG -DUSE_SHM -fpic -I. -I/home/zhqun/tk8.4.5/generic -I/home/zhqun/tcl8.4.5/generic -I/include otcl.c
ld -shared -o libotcl.so otcl.o
/usr/bin/install -c owish /usr/local/bin
/usr/bin/install -c otclsh /usr/local/bin
/usr/bin/install -c libotcl.a /usr/local/lib
/usr/bin/install -c libotcl.so /usr/local/lib
/usr/bin/install -c otcl.h /usr/local/include
[root@79-9 otcl-1.8]# make test
./otclsh lib/test.tcl
./otclsh: error while loading shared libraries: libtk8.4.so: cannot open shared object file: No such file or directory
make: *** [test] Error 127

Join GitHub today

Find answers to Compile C Qt project on Mac - linking crypto and zlib from the expert community at Experts Exchange.

GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.

Sign upMac network c ld library not found for include lnsl free New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

But as your photo and video library grows — and especially if you've taken advantage of — you may find that your Photos library strains to fit on your Mac's hard drive.While there are options to keep your Mac from running out of space, like if you use iCloud Photo Library, it comes at a cost: Without a fully-stored Photos library, you won't be able to create secondary. How to view library on mac high sierra. (And as good as iCloud has become, your photos and video are precious enough that they're worth keeping backed up in multiple places.).

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac Network C Ld Library Not Found For Include Lnsl Lyrics

Mac network c ld library not found for include lnsl free

Comments

commented Dec 2, 2012

Looking at your CMakeLists.txt I don't think you want to add rt unless you are linux. I get the following error when it tries to build:

You need to change CMakeLists.txt where you add library rt:

Here is the diff:

commented Dec 3, 2012

Thanks, I actually had that before, but must have missed it in the move to catkin:

if(UNIXANDNOT APPLE)

I'll get a fix for this asap.

closed this in fe00053Dec 3, 2012

Mac Network C Ld Library Not Found For Include Lnsl Free

Closed
Closed
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment