Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re^4: linking libxml2

by shan_emails (Beadle)
on Jul 10, 2013 at 16:13 UTC ( #1043502=note: print w/ replies, xml ) Need Help??

in reply to Re^3: linking libxml2
in thread linking libxml2

my updated run is

bash-3.2$ pwd /install/others/XML-LibXML-1.31 bash-3.2$ perl Makefile.PL LIBS='-L/install/others/lib -lxml2 -lz +-lm' INC='-I/install/others/include/libxml2' DEBUG=1 running xml2-config... xml2-config --version failed *** backticks call to 'xml2-config --version' failed at Makefile.P +L line 212. using fallback values for LIBS and INC options: LIBS='-L/usr/local/lib -L/usr/lib -lxml2 -lz -lm' INC='-I/usr/local/include -I/usr/include' If this is wrong, Re-run as: $ /usr/bin/perl Makefile.PL LIBS='-L/path/to/lib' INC='-I/path/t +o/include' looking for -lxml2... /usr/bin/perl Makefile.PL 'INC=-I/usr/local/ +include -I/usr/include' 'LIBS=-L/usr/local/lib -L/usr/lib -lxml2 -lz +-lm' INC = -I/usr/local/include -I/usr/include LIBS = -L/usr/local/lib -L/usr/lib -lxml2 -lz -lm Writing Makefile for Conftest make test 'OTHERLDFLAGS=-lxml2' cp blib/lib/ /usr/bin/perl /usr/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap /usr/ +lib/perl5/5.8.8/ExtUtils/typemap Conftest.xs > Conftest.xsc && mv Co +nftest.xsc Conftest.c gcc -c -I/usr/local/include -I/usr/include -D_REENTRANT -D_GNU_SO +URCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/ +local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/inclu +de/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fsta +ck-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DVERSIO +N=\"1\" -DXS_VERSION=\"1\" -fPIC "-I/usr/lib64/perl5/5.8.8/x86_64-lin +ux-thread-multi/CORE" Conftest.c Conftest.xs:11: warning: return type defaults to âintâ Running Mkbootstrap for Conftest () chmod 644 rm -f blib/arch/auto/Conftest/ gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptio +ns -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic Co +nftest.o -lxml2 -o blib/arch/auto/Conftest/ \ -L/usr/local/lib -L/usr/lib -lxml2 -lz -lm \ /usr/bin/ld: cannot find -lxml2 collect2: ld returned 1 exit status make: *** [blib/arch/auto/Conftest/] Error 1 system call to 'make test 'OTHERLDFLAGS=-lxml2'' failed at Makefil +e.PL line 188. no libxml2 not found Try setting LIBS and INC values on the command line Or get libxml2 from If you install via RPMs, make sure you also install the -devel RPMs, as this is where the headers (.h files) are. bash-3.2$
Shanmugam A.

Comment on Re^4: linking libxml2
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1043502]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2015-11-26 00:47 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (695 votes), past polls