> > However, > $ gcc -L/usr/local/lib -lzmq -o testzmq testzmq.c ==> Successfully > Compiles and links!
This version works? Can you ldd the binary from this and an unworking (but compiled) binary from before and provide their output too? -- Wolf > > Here are the required outputs: > > 15:04:48 # ldd libzmq.so > linux-vdso.so.1 => (0x00007fff695a8000) > libuuid.so.1 => /lib64/libuuid.so.1 (0x00007f4a3f8d5000) > librt.so.1 => /lib64/librt.so.1 (0x00007f4a3f6cc000) > libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f4a3f4af000) > libstdc++.so.6 => /usr/local/lib/../lib64/libstdc++.so.6 > (0x00007f4a3f39f000) > libm.so.6 => /lib64/libm.so.6 (0x00007f4a3f11a000) > libc.so.6 => /lib64/libc.so.6 (0x00007f4a3ed89000) > libgcc_s.so.1 => /usr/local/lib/../lib64/libgcc_s.so.1 > (0x00007f4a3ed7b000) > /lib64/ld-linux-x86-64.so.2 (0x00007f4a3fd36000) > > Please find the output of "nm libzmq.so" attached. > > Thanks, > Kushal > > 2012/2/21 Aurélien Vallée <[email protected]>: >> Nothing weird in your environment (btw, you are building as root?). >> >> Could you ldd and nm the libzmq and show us the output ? >> >> >> On Tue, Feb 21, 2012 at 8:55 PM, gonzalo diethelm <[email protected]> wrote: >>> >>> Yes, that's why I suggested there were some C++ libraries missing. >>> >>> Quick test: write a C++ (not a C) "hello world" program and see if you can >>> compile, link and run it. >>> >>> -- >>> Gonzalo Diethelm >>> DCV Chile >>> >>> >>> > -----Original Message----- >>> > From: [email protected] [mailto:zeromq-dev- >>> > [email protected]] On Behalf Of Wolfgang Richter >>> > Sent: Tuesday, February 21, 2012 4:18 PM >>> > To: ZeroMQ development list >>> > Subject: Re: [zeromq-dev] Issues installing ZeroMQ and PyZMQ on RHEL 6 >>> > >>> > Ah, missed the attachment, it does seem as if some std C++ library is >>> > missing >>> > or not installed in the proper path. >>> > >>> > You compiled on the same system (another cause for the issue Aurélien >>> > Vallée raised)? >>> > >>> > -- >>> > Wolf >>> > >>> > On Tue, Feb 21, 2012 at 2:14 PM, Wolfgang Richter <[email protected]> >>> > wrote: >>> > > When trying -lzmq you mean you've verified that the library is >>> > > installed system-wide? >>> > > >>> > > Or you don't have permission to do that (be root, do make install)? >>> > > >>> > > If not, it's still possible to build and link against alternate path >>> > > libzmq binaries, just trickier with gcc's -L and -l. >>> > > >>> > > -- >>> > > Wolf >>> > > >>> > > On Tue, Feb 21, 2012 at 2:09 PM, Kushal Dalmia <[email protected]> >>> > > wrote: >>> > >> Hi, >>> > >> >>> > >> These are the required outputs: >>> > >> >>> > >> 14:06:15 # echo $PATH >>> > >> /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/sbin:/bin:/usr/ >>> > >> sbin:/usr/bin >>> > >> >>> > >> 14:06:19 # echo $LD_LIBRARY_PATH >>> > >> /usr/local/lib:/usr/local/lib64:/usr/lib >>> > >> >>> > >> 14:06:50 # echo $LD_PRELOAD >>> > >> >>> > >> 14:07:12 # echo $LDFLAGS >>> > >> >>> > >> 14:07:34 # which gcc >>> > >> /usr/bin/gcc >>> > >> >>> > >> Thanks, >>> > >> Kushal >>> > >> >>> > >> 2012/2/21 Aurélien Vallée <[email protected]>: >>> > >>> Seems like you're not using the appropriate libstdc++ used to build >>> > >>> zmq. >>> > >>> Most of the time, this simply means that you created an incoherency >>> > >>> between your $PATH and $LD_LIBRARY_PATH. e.g. you have a custom >>> > gcc >>> > >>> in your $PATH that linked with a libstdc++ that is not accessible. >>> > >>> Could you show us: >>> > >>> echo $PATH >>> > >>> echo $LD_LIBRARY_PATH >>> > >>> echo $LD_PRELOAD >>> > >>> echo $LDFLAGS >>> > >>> which gcc >>> > >>> >>> > >>> >>> > >>> On Tue, Feb 21, 2012 at 11:57 AM, Justin Cook <[email protected]> >>> > wrote: >>> > >>>> >>> > >>>> Looks like this is installed outside the standard library path. >>> > >>>> >>> > >>>> $ export LIBRARY_PATH=<dir to libs> >>> > >>>> >>> > >>>> On Tue, Feb 21, 2012 at 6:41 AM, Kushal Dalmia <[email protected]> >>> > wrote: >>> > >>>> > Hi, >>> > >>>> > >>> > >>>> > I am a researcher at Carnegie Mellon University and am trying to >>> > >>>> > install ZeroMQ with its Python bindings on a RHEL 6 box (Red Hat >>> > >>>> > Enterprise Linux Workstation release 6.1 (Santiago)). >>> > >>>> > >>> > >>>> > I first tried getting the source from the ZeroMQ website and >>> > >>>> > building it. >>> > >>>> > The build finishes successfully and I can see all the required >>> > >>>> > header files and libraries in the expected dirs. However, when I >>> > >>>> > write a simple C application which links with "-lzmq", the linker >>> > >>>> > fails with a bunch of errors (Please see attached file for >>> > >>>> > details). >>> > >>>> > >>> > >>>> > I also tried getting and installing the RPM >>> > >>>> > (zeromq-2.1.9-1.el6.x86_64.rpm), but get the same issue when >>> > >>>> > trying to link to it. >>> > >>>> > >>> > >>>> > Please suggest me how to go about this? The same errors are seen >>> > >>>> > when I do a "easy_install pyzmq" to install the python bindings. >>> > >>>> > >>> > >>>> > Thanks, >>> > >>>> > Kushal Dalmia >>> > >>>> > Graduate Student >>> > >>>> > Carnegie Mellon University >>> > >>>> _______________________________________________ >>> > >>>> zeromq-dev mailing list >>> > >>>> [email protected] >>> > >>>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev >>> > >>> >>> > >>> >>> > >>> >>> > >>> >>> > >>> -- >>> > >>> Aurélien Vallée >>> > >>> +33 6 47 41 70 37 >>> > >>> >>> > >>> _______________________________________________ >>> > >>> zeromq-dev mailing list >>> > >>> [email protected] >>> > >>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev >>> > >>> >>> > >> _______________________________________________ >>> > >> zeromq-dev mailing list >>> > >> [email protected] >>> > >> http://lists.zeromq.org/mailman/listinfo/zeromq-dev >>> > _______________________________________________ >>> > zeromq-dev mailing list >>> > [email protected] >>> > http://lists.zeromq.org/mailman/listinfo/zeromq-dev >>> ----------------------------------------- >>> Declaración de confidencialidad: Este Mensaje esta destinado para >>> el uso de la o las personas o entidades a quien ha sido dirigido y >>> puede contener información reservada y confidencial que no puede >>> ser divulgada, difundida, ni aprovechada en forma alguna. El uso no >>> autorizado de la información contenida en este correo podrá ser >>> sancionado de conformidad con la ley chilena. >>> Si usted ha recibido este correo electrónico por error, le pedimos >>> eliminarlo junto con los archivos adjuntos y avisar inmediatamente >>> al remitente, respondiendo este mensaje. >>> >>> "Before printing this e-mail think if is really necesary". >>> Disclosure: This Message is to be used by the individual, >>> individuals or entities that it is addressed to and may include >>> private and confidential information that may not be disclosed, >>> made public nor used in any way at all. Unauthorized use of the >>> information in this electronic mail message may be subject to the >>> penalties set forth by Chilean law. >>> If you have received this electronic mail message in error, we ask >>> you to destroy the message and its attached file(s) and to >>> immediately notify the sender by answering this message. >>> _______________________________________________ >>> zeromq-dev mailing list >>> [email protected] >>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev >> >> >> >> >> -- >> Aurélien Vallée >> +33 6 47 41 70 37 >> >> _______________________________________________ >> zeromq-dev mailing list >> [email protected] >> http://lists.zeromq.org/mailman/listinfo/zeromq-dev >> > > _______________________________________________ > zeromq-dev mailing list > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev > _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
