hawihoney Posted January 21, 2009 Share Posted January 21, 2009 [EDITED] SOLVED - see first code for working procedure now. I would like to install nzbget on one of my machines. G++ is installed and make is installed too. ./configure reports that g++ can't create executables. I've read that someone has it running but I couldn't find a detailed describtion of the installation process. Any help would be highly appreciated. What I did so far is: # Prerequisites cd /boot/custom/packages installpkg bind-9.4.3_P1-i486-1.tgz installpkg binutils-2.18.50.0.9-i486-1.tgz installpkg kernel-headers-2.6.27.7_smp-x86-1.tgz installpkg glibc-2.7-i486-17.tgz installpkg cxxlibs-6.0.8-i486-4.tgz installpkg gcc-4.2.4-i486-1.tgz installpkg gcc-g++-4.2.4-i486-1.tgz installpkg make-3.81-i486-1.tgz installpkg openssl-0.9.8i-i486-2.tgz installpkg openssh-5.1p1-i486-1.tgz cp --preserve=timestamps /boot/custom/etc/ssh/ssh*key* /etc/ssh/. /etc/rc.d/rc.sshd start # nzbget cd /tmp cp /boot/custom/packages/nzbget-0.5.1.tar.gz . tar -zxf nzbget-0.5.1.tar.gz cd nzbget-0.5.1 ./configure --disable-curses --disable-parcheck --with-tlslib=OpenSSL make make install #cp --preserve=timestamps /etc/nzbget.conf /boot/custom/etc/. cp --preserve=timestamps /boot/custom/etc/nzbget.conf /etc/. nzbget -s & Here's the output: checking for a BSD-compatible install... /usr/bin/ginstall -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking build system type... i686-pc-linux-gnuoldld checking host system type... i686-pc-linux-gnuoldld checking for g++... g++ checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables See `config.log' for more details. Double-check g++ and make: > g++ --version g++ (GCC) 4.2.4 Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > make --version GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Here's the output of the config.log file. It looks to me as if ./configure tries to call g++ with wrong parameters (or the error message is simply wrong): This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by nzbget configure 0.5.1, which was generated by GNU Autoconf 2.61. Invocation command line was $ ./configure --disable-curses --disable-parcheck --with-tlslib=OpenSSL ## --------- ## ## Platform. ## ## --------- ## hostname = Tower2 uname -m = i686 uname -r = 2.6.27.7-unRAID uname -s = Linux uname -v = #3 SMP Tue Nov 25 13:24:59 MST 2008 /usr/bin/uname -p = Intel(R) Core(TM)2 Duo CPU E7300 @ 2.66GHz /bin/uname -X = unknown /bin/arch = i686 /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /usr/local/sbin PATH: /usr/sbin PATH: /sbin PATH: ./ PATH: /usr/local/bin PATH: /usr/bin PATH: /bin ## ----------- ## ## Core tests. ## ## ----------- ## configure:1859: checking for a BSD-compatible install configure:1915: result: /usr/bin/ginstall -c configure:1926: checking whether build environment is sane configure:1969: result: yes configure:1997: checking for a thread-safe mkdir -p configure:2036: result: /usr/bin/mkdir -p configure:2049: checking for gawk configure:2065: found /usr/bin/gawk configure:2076: result: gawk configure:2087: checking whether make sets $(MAKE) configure:2108: result: yes configure:2307: checking build system type configure:2325: result: i686-pc-linux-gnuoldld configure:2347: checking host system type configure:2362: result: i686-pc-linux-gnuoldld configure:2463: checking for g++ configure:2479: found /usr/bin/g++ configure:2490: result: g++ configure:2521: checking for C++ compiler version configure:2528: g++ --version >&5 g++ (GCC) 4.2.4 Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:2531: $? = 0 configure:2538: g++ -v >&5 Using built-in specs. Target: i486-slackware-linux Configured with: ../gcc-4.2.4/configure --prefix=/usr --enable-shared --enable-languages=ada,c,c++,fortran,java,objc --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --with-arch=i486 --target=i486-slackware-linux --host=i486-slackware-linux Thread model: posix gcc version 4.2.4 configure:2541: $? = 0 configure:2548: g++ -V >&5 g++: '-V' option must have argument configure:2551: $? = 1 configure:2574: checking for C++ compiler default output file name configure:2601: g++ conftest.cpp >&5 g++: error trying to exec 'as': execvp: No such file or directory configure:2604: $? = 1 configure:2642: result: configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "nzbget" | #define PACKAGE_TARNAME "nzbget" | #define PACKAGE_VERSION "0.5.1" | #define PACKAGE_STRING "nzbget 0.5.1" | #define PACKAGE_BUGREPORT "[email protected]" | #define PACKAGE "nzbget" | #define VERSION "0.5.1" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:2649: error: C++ compiler cannot create executables See `config.log' for more details. ... Thanks Harald Quote Link to comment
bubbaQ Posted January 21, 2009 Share Posted January 21, 2009 You are missing the program "as". Get the "binutils-2.18.50.0.9-i486-1.tgz" package. Quote Link to comment
hawihoney Posted January 21, 2009 Author Share Posted January 21, 2009 Yes, I was missing a lot of files. With a lot of trial and error I finally could install nzbget. I will mark the required additional files in red in the edited OP. Thanks Harald Quote Link to comment
magistratee Posted April 15, 2009 Share Posted April 15, 2009 Does this install have SSL? Quote Link to comment
NAS Posted April 15, 2009 Share Posted April 15, 2009 hawihoney any chance you can take pownership of a wiki page on this. Dont worry about formatting if you can get the main info in there and update as you refine the community can make it look pretty Quote Link to comment
hawihoney Posted April 15, 2009 Author Share Posted April 15, 2009 Does this install have SSL? Yes, I do have this working with SSL. Here's my GO script: #!/bin/bash echo nameserver 192.168.178.1 > /etc/resolv.conf echo 192.168.178.20 Tower >> /etc/hosts echo 192.168.178.21 Tower2 >> /etc/hosts # Start the Management Utility /usr/local/sbin/emhttp & sleep 30 # Spin-up for special hours crontab -u root -l | grep -v /boot/jobs/spin.sh > /tmp/crontab.root cat <<-EOF >> /tmp/crontab.root 0,30 8-23 * * * /boot/custom/jobs/spin.sh /dev/sda /dev/sdb /dev/sdc /dev/sdd /dev/sdf /dev/sdg /dev/sdh /dev/sdi /dev/sdj /dev/sdk /dev/sdl /dev/sdm /dev/sdn /dev/sdo /dev/sdp EOF crontab /tmp/crontab.root -u root # Packages laden cd /boot/custom/packages installpkg binutils-2.18.50.0.9-i486-1.tgz installpkg kernel-headers-2.6.27.7_smp-x86-1.tgz installpkg glibc-2.7-i486-17.tgz installpkg bind-9.4.3_P1-i486-1.tgz installpkg bwm-ng-0.6-i486-2bj.tgz installpkg cxxlibs-6.0.8-i486-4.tgz installpkg file-4.21-i486-1.tgz installpkg gcc-4.2.4-i486-1.tgz installpkg gcc-g++-4.2.4-i486-1.tgz installpkg gd-2.0.35-i486-2.tgz installpkg libxml2-2.6.32-i486-2.tgz installpkg lsof-4.78-i486-1.tgz installpkg make-3.81-i486-1.tgz installpkg pciutils-2.2.10-i486-2.tgz installpkg perl-5.10.0-i486-1.tgz installpkg php-5.2.8-i486-1.tgz installpkg smartmontools-5.38-i486-1.tgz installpkg infozip-5.52-i486-2.tgz installpkg openssl-0.9.8i-i486-2.tgz installpkg openssh-5.1p1-i486-1.tgz #cp --preserve=timestamps /etc/ssh/* /boot/custom/etc/ssh/. cp --preserve=timestamps /boot/custom/etc/ssh/ssh*key* /etc/ssh/. /etc/rc.d/rc.sshd start installpkg mysql-5.0.67-i486-1.tgz #mkdir /mnt/disk1/Daten/mysql cp /etc/my-medium.cnf /etc/my.cnf sed -i -e "s/#innodb_data_home_dir = \/var\/lib\/mysql\//innodb_data_home_dir = \/mnt\/disk1\/Daten\/mysql\//" /etc/my.cnf sed -i -e "s/#innodb_log_group_home_dir = \/var\/lib\/mysql\//innodb_log_group_home_dir = \/mnt\/disk1\/Daten\/mysql\//" /etc/my.cnf sed -i -e "s/#innodb_log_arch_dir = \/var\/lib\/mysql\//innodb_log_arch_dir = \/mnt\/disk1\/Daten\/mysql\//" /etc/my.cnf cd /usr #/usr/bin/mysql_install_db --datadir=/mnt/disk1/Daten/mysql/ --user=mysql /usr/bin/mysqld_safe --datadir=/mnt/disk1/Daten/mysql/ --user=mysql & #/usr/bin/mysqladmin -u root password 'yourpassword' #/usr/bin/mysqladmin -u root -h Tower2 --password=yourpassword password 'yourpassword' #/usr/bin/mysqladmin -u root -h Tower2 --password=yourpassword create Helium #/usr/bin/mysql -u root -h Tower2 --password=yourpassword --database=Helium -e "GRANT ALL PRIVILEGES ON Helium.* TO root@'%' IDENTIFIED BY 'yourpassword' WITH GRANT OPTION;" #/usr/bin/mysqladmin -u root -h Tower2 -f --password=yourpassword drop test #/usr/bin/mysql -u root -D Helium --password=yourpassword < /mnt/disk1/Daten/Helium/backup.sql cd /tmp cp /boot/custom/packages/nzbget-0.5.1.tar.gz . tar -zxf nzbget-0.5.1.tar.gz cd nzbget-0.5.1 ./configure --disable-curses --disable-parcheck --with-tlslib=OpenSSL make make install #mkdir /mnt/disk1/Daten/nzbget #cp --preserve=timestamps /etc/nzbget.conf /boot/custom/etc/. cp --preserve=timestamps /boot/custom/etc/nzbget.conf /etc/. nzbget -s & Quote Link to comment
hawihoney Posted April 15, 2009 Author Share Posted April 15, 2009 hawihoney any chance you can take pownership of a wiki page on this. Dont worry about formatting if you can get the main info in there and update as you refine the community can make it look pretty In theory? Yes! But there's one slight problem. I don't know exactly what packages are required for NZBGET alone. I load a lot of packages for mysql (running here with multi-GB databases), NZBGET, SSH/SSL, etc. etc. So I don't know what exactly is needed. In addition I stopped using unmenu. I just use my go script to load and install all this stuff. Quote Link to comment
neilt0 Posted April 2, 2011 Share Posted April 2, 2011 Threadsurrection! I've been trying to get nzbget running on my unRAID server. So far, it's all working apart from libpar2. The OP in this thread disabled it, but not having par2 makes a usenet client unusable IMO. Is anyone currently running nzbget, and if so, do you have libpar2 working? I could only find a libpar2 package for Slackware that looks somewhat out of date, so this could be the problem. Code snippet from my go script: # install packages for nzbget cd /boot/packages installpkg kernel-headers-2.6.33.4_smp-x86-1.txz installpkg pkg-config-0.23-i486-2.txz installpkg libxml2-2.7.6-i486-1.txz installpkg make-3.81-i486-1.txz installpkg libpar2-0.2-i486-3sl.txz installpkg libsigc++-2.2.8-i486-2sl.txz installpkg binutils-2.20.51.0.8-i486-1.txz installpkg glibc-2.11.1-i486-3.txz installpkg perl-5.10.1-i486-1.txz # installpkg gcc-g++-4.4.4-i486-1.txz # installpkg gcc-4.4.4-i486-1.txz installpkg gcc-4.2.4-i486-1.tgz installpkg gcc-g++-4.2.4-i486-1.tgz installpkg ncurses-5.7-i486-1.txz installpkg bind-9.4.3_P4-i486-1.txz installpkg cxxlibs-6.0.13-i486-2.txz cd /tmp cp /boot/packages/nzbget-0.8.0-testing-r394.tar.gz . tar -zxf nzbget-0.8.0-testing-r394.tar.gz cd nzbget-0.8.0-testing # ./configure --disable-parcheck --disable-curses --with-tlslib=OpenSSL # ./configure --disable-parcheck --disable-tls ./configure --disable-tls --with-libpar2-includes --with-libpar2-libraries And the configure result: root@MICRO:/tmp/nzbget-0.8.0-testing# ./configure --disable-tls --with-libpar2-includes --with-libpar2-libraries . . checking sigc++/type_traits.h usability... yes checking sigc++/type_traits.h presence... yes checking for sigc++/type_traits.h... yes checking libpar2/libpar2.h usability... yes checking libpar2/libpar2.h presence... yes checking for libpar2/libpar2.h... yes checking for library containing _ZN12Par2RepairerC1Ev... no configure: error: "libpar2 library not found" Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.