Another Install Help Request

Get help, report and discuss bugs.
Post Reply
Silvaire
Posts: 42
Joined: 25 Mar 2014, 01:31

Another Install Help Request

Post by Silvaire » 31 Aug 2014, 04:11

Hi, I have wiped my Ubuntu Server and started fresh with 14.04. I'm attemping to install the latest version of NZBGet from source but having some difficulty. I've followed all of the directions in the instructions, however, I keep getting libxml errors.

LibXML2 is installed:

Code: Select all

chad@Paragon:~/nzbget-14.0-testing$ sudo apt-get install libxml2
Reading package lists... Done
Building dependency tree
Reading state information... Done
libxml2 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
LibXML2-dev is installed:

Code: Select all

chad@Paragon:~/nzbget-14.0-testing$ sudo apt-get install libxml2-dev            Reading package lists... Done
Building dependency tree
Reading state information... Done
libxml2-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
chad@Paragon:~/nzbget-14.0-testing$
And yet when I run /configure:

Code: Select all

checking for getaddrinfo... yes
checking for library containing getaddrinfo... none required
checking for pthread_spin_init... yes
checking for library containing pthread_spin_init... none required
checking for type of socket length (socklen_t)... socklen_t
checking whether dir-browser snapshot workaround is needed... no
checking for pkg-config... no
checking for libxml2... configure: error: "libxml2 library not found"
I get that. Now, I'm a Linux beginner, but I've read some other threads trying to troubleshoot this and removed the check in configure but it still gives fatal errors when I do make because it can't find any of the libxml2 header files, which don't appear on my system as far as I can tell.

Here is a locate:

Code: Select all

chad@Paragon:~/nzbget-14.0-testing$ locate libxml2
/usr/lib/x86_64-linux-gnu/libxml2.so.2
/usr/lib/x86_64-linux-gnu/libxml2.so.2.9.1
/usr/share/doc/libxml2
/usr/share/doc/libxml2/AUTHORS
/usr/share/doc/libxml2/NEWS.gz
/usr/share/doc/libxml2/README
/usr/share/doc/libxml2/README.Debian
/usr/share/doc/libxml2/TODO.gz
/usr/share/doc/libxml2/changelog.Debian.gz
/usr/share/doc/libxml2/copyright
/usr/share/lintian/overrides/libxml2
/var/cache/apt/archives/libxml2_2.9.1+dfsg1-3ubuntu4.3_amd64.deb
/var/lib/dpkg/info/libxml2:amd64.list
/var/lib/dpkg/info/libxml2:amd64.md5sums
/var/lib/dpkg/info/libxml2:amd64.postinst
/var/lib/dpkg/info/libxml2:amd64.postrm
/var/lib/dpkg/info/libxml2:amd64.shlibs
/var/lib/dpkg/info/libxml2:amd64.symbols
I'm at a loss for next steps because Ubuntu is telling me both packages are installed but when I look for the typical place this stuff resides in, like /usr/includes, it doesn't seem to be there.

Thanks!

Silvaire
Posts: 42
Joined: 25 Mar 2014, 01:31

Re: Another Install Help Request

Post by Silvaire » 31 Aug 2014, 17:45

Okay, today I ran locate again and now more of them are showing up correctly but I still have the same configure error complaining about not finding the library.

Code: Select all

chad@Paragon:~/nzbget-14.0-testing$ locate libxml2
/usr/include/libxml2
/usr/include/libxml2/libxml
/usr/include/libxml2/libxml/DOCBparser.h
/usr/include/libxml2/libxml/HTMLparser.h
/usr/include/libxml2/libxml/HTMLtree.h
/usr/include/libxml2/libxml/SAX.h
/usr/include/libxml2/libxml/SAX2.h
/usr/include/libxml2/libxml/c14n.h
/usr/include/libxml2/libxml/catalog.h
/usr/include/libxml2/libxml/chvalid.h
/usr/include/libxml2/libxml/debugXML.h
/usr/include/libxml2/libxml/dict.h
/usr/include/libxml2/libxml/encoding.h
/usr/include/libxml2/libxml/entities.h
/usr/include/libxml2/libxml/globals.h
/usr/include/libxml2/libxml/hash.h
/usr/include/libxml2/libxml/list.h
/usr/include/libxml2/libxml/nanoftp.h
/usr/include/libxml2/libxml/nanohttp.h
/usr/include/libxml2/libxml/parser.h
/usr/include/libxml2/libxml/parserInternals.h
/usr/include/libxml2/libxml/pattern.h
/usr/include/libxml2/libxml/relaxng.h
/usr/include/libxml2/libxml/schemasInternals.h
/usr/include/libxml2/libxml/schematron.h
/usr/include/libxml2/libxml/threads.h
/usr/include/libxml2/libxml/tree.h
/usr/include/libxml2/libxml/uri.h
/usr/include/libxml2/libxml/valid.h
/usr/include/libxml2/libxml/xinclude.h
/usr/include/libxml2/libxml/xlink.h
/usr/include/libxml2/libxml/xmlIO.h
/usr/include/libxml2/libxml/xmlautomata.h
/usr/include/libxml2/libxml/xmlerror.h
/usr/include/libxml2/libxml/xmlexports.h
/usr/include/libxml2/libxml/xmlmemory.h
/usr/include/libxml2/libxml/xmlmodule.h
/usr/include/libxml2/libxml/xmlreader.h
/usr/include/libxml2/libxml/xmlregexp.h
/usr/include/libxml2/libxml/xmlsave.h
/usr/include/libxml2/libxml/xmlschemas.h
/usr/include/libxml2/libxml/xmlschemastypes.h
/usr/include/libxml2/libxml/xmlstring.h
/usr/include/libxml2/libxml/xmlunicode.h
/usr/include/libxml2/libxml/xmlversion.h
/usr/include/libxml2/libxml/xmlwriter.h
/usr/include/libxml2/libxml/xpath.h
/usr/include/libxml2/libxml/xpathInternals.h
/usr/include/libxml2/libxml/xpointer.h
/usr/lib/x86_64-linux-gnu/libxml2.a
/usr/lib/x86_64-linux-gnu/libxml2.so
/usr/lib/x86_64-linux-gnu/libxml2.so.2
/usr/lib/x86_64-linux-gnu/libxml2.so.2.9.1
/usr/share/aclocal/libxml2.m4
/usr/share/doc/libxml2
/usr/share/doc/libxml2-dev
/usr/share/doc/libxml2/AUTHORS
/usr/share/doc/libxml2/NEWS.gz
/usr/share/doc/libxml2/README
/usr/share/doc/libxml2/README.Debian
/usr/share/doc/libxml2/TODO.gz
/usr/share/doc/libxml2/changelog.Debian.gz
/usr/share/doc/libxml2/copyright
/usr/share/doc/libxml2-dev/AUTHORS
/usr/share/doc/libxml2-dev/NEWS.gz
/usr/share/doc/libxml2-dev/README
/usr/share/doc/libxml2-dev/TODO.gz
/usr/share/doc/libxml2-dev/changelog.Debian.gz
/usr/share/doc/libxml2-dev/copyright
/usr/share/lintian/overrides/libxml2
/var/cache/apt/archives/libxml2-dev_2.9.1+dfsg1-3ubuntu4.3_amd64.deb
/var/lib/dpkg/info/libxml2-dev:amd64.list
/var/lib/dpkg/info/libxml2-dev:amd64.md5sums
/var/lib/dpkg/info/libxml2-dev:amd64.preinst
/var/lib/dpkg/info/libxml2:amd64.list
/var/lib/dpkg/info/libxml2:amd64.md5sums
/var/lib/dpkg/info/libxml2:amd64.postinst
/var/lib/dpkg/info/libxml2:amd64.postrm
/var/lib/dpkg/info/libxml2:amd64.shlibs
/var/lib/dpkg/info/libxml2:amd64.symbols
EDIT: Hold the phone, I got it to go through configure and make by passing on what I thought were the library directory and include directory manually. Will update soon.
Last edited by Silvaire on 31 Aug 2014, 17:51, edited 1 time in total.

hugbug
Developer & Admin
Posts: 7430
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: Another Install Help Request

Post by hugbug » 31 Aug 2014, 17:50

Try removing and installing libxml2-dev again.
If that doesn't help look in the file config.log for error messages.

Silvaire
Posts: 42
Joined: 25 Mar 2014, 01:31

Re: Another Install Help Request

Post by Silvaire » 31 Aug 2014, 18:04

Ok got it all working. For the record, with a completely fresh 14.04 Ubuntu server and following the directions on the website, you will get that library error. In order to get config to work, I did this:

Code: Select all

./configure --with-tlslib=OpenSSL --with-libxml2-includes=/usr/include/libxml2 --with-libxml2-libraries=/usr/lib/x86_64-linux-gnu/libxml2.so
Thanks.

Telman12
Posts: 16
Joined: 01 Nov 2013, 21:10

Re: Another Install Help Request

Post by Telman12 » 05 Nov 2014, 21:03

Same problem and no solution in itself
after

./configure --with-tlslib=OpenSSL --with-libxml2-includes=/usr/share/doc/libxml2 --with-libxml2-libraries=/usr/lib/i386-linux-gnu/libxml2.so.2

Code: Select all

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 a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for tar... /bin/tar
checking for make... /usr/bin/make
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/prctl.h usability... yes
checking sys/prctl.h presence... yes
checking for sys/prctl.h... yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking for library containing pthread_create... -lpthread
checking for library containing socket... none required
checking for library containing inet_addr... none required
checking for library containing hstrerror... none required
checking for getopt_long... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for ctime_r... yes, and it takes 2 arguments
checking for getaddrinfo... yes
checking for library containing getaddrinfo... none required
checking for pthread_spin_init... yes
checking for library containing pthread_spin_init... none required
checking for type of socket length (socklen_t)... socklen_t
checking whether dir-browser snapshot workaround is needed... no
checking for cpu cores via sysconf... yes
checking libxml/tree.h usability... no
checking libxml/tree.h presence... no
checking for libxml/tree.h... no
configure: error: "libxml2 header files not found"
locate a libxml2
results so they are there
where is the error

Code: Select all

home/p/.local/share/Trash/files/freetz-trunk/make/autofs/patches/005_autofs-5.0.5-fix-libxml2-workaround-configure.patch
/home/p/.local/share/Trash/files/freetz-trunk/make/libs/libxml2
/home/p/.local/share/Trash/files/freetz-trunk/make/libs/libxml2/Config.in
/home/p/.local/share/Trash/files/freetz-trunk/make/libs/libxml2/Makefile.in
/home/p/.local/share/Trash/files/freetz-trunk/make/libs/libxml2/external.files
/home/p/.local/share/Trash/files/freetz-trunk/make/libs/libxml2/external.in
/home/p/.local/share/Trash/files/freetz-trunk/make/libs/libxml2/libxml2.mk
/home/p/.local/share/Trash/files/freetz-trunk/make/libs/libxml2/patches
/home/p/.local/share/Trash/files/freetz-trunk/make/libs/libxml2/patches/100-no_docs_examples_tests.libxml2.patch
/home/p/.local/share/Trash/files/freetz-trunk/make/libs/libxml2/patches/110-pthread_fixes.libxml2.patch
/home/p/.local/share/Trash/files/make/autofs/patches/005_autofs-5.0.5-fix-libxml2-workaround-configure.patch
/home/p/.local/share/Trash/files/make/libs/libxml2
/home/p/.local/share/Trash/files/make/libs/libxml2/Config.in
/home/p/.local/share/Trash/files/make/libs/libxml2/Makefile.in
/home/p/.local/share/Trash/files/make/libs/libxml2/external.files
/home/p/.local/share/Trash/files/make/libs/libxml2/external.in
/home/p/.local/share/Trash/files/make/libs/libxml2/libxml2.mk
/home/p/.local/share/Trash/files/make/libs/libxml2/patches
/home/p/.local/share/Trash/files/make/libs/libxml2/patches/100-no_docs_examples_tests.libxml2.patch
/home/p/.local/share/Trash/files/make/libs/libxml2/patches/110-pthread_fixes.libxml2.patch
/home/p/.local/share/Trash/files/make 1/autofs/patches/005_autofs-5.0.5-fix-libxml2-workaround-configure.patch
/home/p/.local/share/Trash/files/make 1/libs/libxml2
/home/p/.local/share/Trash/files/make 1/libs/libxml2/Config.in
/home/p/.local/share/Trash/files/make 1/libs/libxml2/Makefile.in
/home/p/.local/share/Trash/files/make 1/libs/libxml2/external.files
/home/p/.local/share/Trash/files/make 1/libs/libxml2/external.in
/home/p/.local/share/Trash/files/make 1/libs/libxml2/libxml2.mk
/home/p/.local/share/Trash/files/make 1/libs/libxml2/patches
/home/p/.local/share/Trash/files/make 1/libs/libxml2/patches/100-no_docs_examples_tests.libxml2.patch
/home/p/.local/share/Trash/files/make 1/libs/libxml2/patches/110-pthread_fixes.libxml2.patch
/home/p/Downloads/buildroot-2014.05/package/libxml2
/home/p/Downloads/buildroot-2014.05/package/libstrophe/libstrophe-02-configure.ac-fix-misdetection-of-libxml2.patch
/home/p/Downloads/buildroot-2014.05/package/libxml2/Config.in
/home/p/Downloads/buildroot-2014.05/package/libxml2/libxml2-python2.patch
/home/p/Downloads/buildroot-2014.05/package/libxml2/libxml2.mk
/home/p/freetz-trunk/make/autofs/patches/005_autofs-5.0.5-fix-libxml2-workaround-configure.patch
/home/p/freetz-trunk/make/libs/libxml2
/home/p/freetz-trunk/make/libs/libxml2/Config.in
/home/p/freetz-trunk/make/libs/libxml2/Makefile.in
/home/p/freetz-trunk/make/libs/libxml2/external.files
/home/p/freetz-trunk/make/libs/libxml2/external.in
/home/p/freetz-trunk/make/libs/libxml2/libxml2.mk
/home/p/freetz-trunk/make/libs/libxml2/patches
/home/p/freetz-trunk/make/libs/libxml2/patches/100-no_docs_examples_tests.libxml2.patch
/home/p/freetz-trunk/make/libs/libxml2/patches/110-pthread_fixes.libxml2.patch
/usr/lib/i386-linux-gnu/libxml2.so.2
/usr/lib/i386-linux-gnu/libxml2.so.2.9.1
/usr/lib/vmware-tools/lib32/libxml2.so.2
/usr/lib/vmware-tools/lib32/libxml2.so.2/libxml2.so.2
/usr/lib/vmware-tools/lib64/libxml2.so.2
/usr/lib/vmware-tools/lib64/libxml2.so.2/libxml2.so.2
/usr/share/doc/libxml2
/usr/share/doc/libxml2-utils
/usr/share/doc/libxml2/AUTHORS
/usr/share/doc/libxml2/NEWS.gz
/usr/share/doc/libxml2/README
/usr/share/doc/libxml2/README.Debian
/usr/share/doc/libxml2/TODO.gz
/usr/share/doc/libxml2/changelog.Debian.gz
/usr/share/doc/libxml2/copyright
/usr/share/doc/libxml2-utils/AUTHORS
/usr/share/doc/libxml2-utils/NEWS.gz
/usr/share/doc/libxml2-utils/README
/usr/share/doc/libxml2-utils/TODO.gz
/usr/share/doc/libxml2-utils/changelog.Debian.gz
/usr/share/doc/libxml2-utils/copyright
/usr/share/lintian/overrides/libxml2
/var/cache/apt/archives/libxml2-utils_2.9.1+dfsg1-3ubuntu4.4_i386.deb
/var/cache/apt/archives/libxml2_2.9.1+dfsg1-3ubuntu4.4_i386.deb
/var/lib/dpkg/info/libxml2-utils.list
/var/lib/dpkg/info/libxml2-utils.md5sums
/var/lib/dpkg/info/libxml2-utils.preinst
/var/lib/dpkg/info/libxml2:i386.list
/var/lib/dpkg/info/libxml2:i386.md5sums
/var/lib/dpkg/info/libxml2:i386.postinst
/var/lib/dpkg/info/libxml2:i386.postrm
/var/lib/dpkg/info/libxml2:i386.shlibs
/var/lib/dpkg/info/libxml2:i386.symbols
actually it should be a cross but if already so nothing goes!
HELP welcome

Code: Select all

target system type ... mips-linux-uclibc buildroot

hugbug
Developer & Admin
Posts: 7430
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: Another Install Help Request

Post by hugbug » 05 Nov 2014, 21:15

Telman12 wrote:Same problem and no solution in itself
No, it's totally different since you are cross-compiling. Please read tips about cross compiling (if you haven't yet).

When cross-compiling you should never use include-/libraries- paths for the host system (/usr/lib/i386-linux-gnu/libxml2.so.2). You should use paths of the toolchain instead.

Telman12
Posts: 16
Joined: 01 Nov 2013, 21:10

Re: Another Install Help Request

Post by Telman12 » 05 Nov 2014, 21:47

oh sorry the start line to
without cross

Code: Select all

./configure --with-tlslib=OpenSSL --with-libxml2-includes=/usr/share/doc/libxml2 --with-libxml2-libraries=/usr/lib/i386-linux-gnu/libxml2.so.2
but it occurs the same error on the cross

Code: Select all

p@ubuntu:~/nzbget-14.0$ ./configure --host=mips-buildroot-linux-uclibc --with-libxml2-includes=/usr/share/doc/libxml2 --with-libxml2-libraries=/usr/lib/i386-linux-gnu/libxml2.so.2

Code: Select all

configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking build system type... i686-pc-linux-gnu
checking host system type... mips-buildroot-linux-uclibc
checking target system type... mips-buildroot-linux-uclibc
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for mips-buildroot-linux-uclibc-strip... mips-buildroot-linux-uclibc-strip
checking for mips-buildroot-linux-uclibc-g++... no
checking for mips-buildroot-linux-uclibc-c++... no
checking for mips-buildroot-linux-uclibc-gpp... no
checking for mips-buildroot-linux-uclibc-aCC... no
checking for mips-buildroot-linux-uclibc-CC... no
checking for mips-buildroot-linux-uclibc-cxx... no
checking for mips-buildroot-linux-uclibc-cc++... no
checking for mips-buildroot-linux-uclibc-cl.exe... no
checking for mips-buildroot-linux-uclibc-FCC... no
checking for mips-buildroot-linux-uclibc-KCC... no
checking for mips-buildroot-linux-uclibc-RCC... no
checking for mips-buildroot-linux-uclibc-xlC_r... no
checking for mips-buildroot-linux-uclibc-xlC... no
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for tar... /bin/tar
checking for make... /usr/bin/make
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/prctl.h usability... yes
checking sys/prctl.h presence... yes
checking for sys/prctl.h... yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking for library containing pthread_create... -lpthread
checking for library containing socket... none required
checking for library containing inet_addr... none required
checking for library containing hstrerror... none required
checking for getopt_long... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for ctime_r... yes, and it takes 2 arguments
checking for getaddrinfo... yes
checking for library containing getaddrinfo... none required
checking for pthread_spin_init... yes
checking for library containing pthread_spin_init... none required
checking for type of socket length (socklen_t)... socklen_t
checking whether dir-browser snapshot workaround is needed... no
checking for cpu cores via sysconf... yes
checking libxml/tree.h usability... no
checking libxml/tree.h presence... no
checking for libxml/tree.h... no
configure: error: "libxml2 header files not found"
so my guess is it is not on the cross
good night

hugbug
Developer & Admin
Posts: 7430
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: Another Install Help Request

Post by hugbug » 05 Nov 2014, 22:01

What's your goal? Do you want to compile for the host or for other system?

For ubuntu follow the instructions Installation on POSIX.

For cross-compiling I've posted a link with few tips already. Detailed general instructions cannot be provided because the process is different for each target platform. You should either follow instructions of vendor or find instructions from other users (on forums).

clintonhall
Posts: 449
Joined: 15 Dec 2012, 01:52
Location: Australia
Contact:

Re: Another Install Help Request

Post by clintonhall » 06 Nov 2014, 05:02

You need to cross-compile libxml FOR mips, and have the mips version on the libs and includes linked. As hugbug said, the HOST versions if this lib cannot be used to cross-compile for mips.

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests