Why do I get some errors during the reinstallation ?

Discussion in 'General' started by arastirici, Apr 11, 2009.

  1. arastirici

    arastirici New Member

    Hello

    I used ispconfig2.2.25 on opensuse11-32bit.
    I tried to upgrade ispconfig2.2.25 to ispconfig2.2.31 but I failed.
    My ispconfig service went down.
    I wanted to reinstall ispconfig2.2.25.

    But I had an error while I was installing isp2.2.25;

    How can I correct this ?

    /tmp/install_ispconfig/compile_aps/php-5.2.6/ext/iconv/iconv.c:348: undefined reference to `libiconv'
    /tmp/install_ispconfig/compile_aps/php-5.2.6/ext/iconv/iconv.c:385: undefined reference to `libiconv'
    ext/iconv/.libs/iconv.o: In function `_php_iconv_mime_decode':
    /tmp/install_ispconfig/compile_aps/php-5.2.6/ext/iconv/iconv.c:1354: undefined reference to `libiconv_open'
    /tmp/install_ispconfig/compile_aps/php-5.2.6/ext/iconv/iconv.c:1823: undefined reference to `libiconv_close'
    /tmp/install_ispconfig/compile_aps/php-5.2.6/ext/iconv/iconv.c:1826: undefined reference to `libiconv_close'
    /tmp/install_ispconfig/compile_aps/php-5.2.6/ext/iconv/iconv.c:1465: undefined reference to `libiconv_close'
    /tmp/install_ispconfig/compile_aps/php-5.2.6/ext/iconv/iconv.c:1468: undefined reference to `libiconv_open'
    ext/iconv/.libs/iconv.o: In function `_php_iconv_strlen':
    /tmp/install_ispconfig/compile_aps/php-5.2.6/ext/iconv/iconv.c:603: undefined reference to `libiconv_open'
    /tmp/install_ispconfig/compile_aps/php-5.2.6/ext/iconv/iconv.c:626: undefined reference to `libiconv'
    /tmp/install_ispconfig/compile_aps/php-5.2.6/ext/iconv/iconv.c:660: undefined reference to `libiconv_close'
    ext/iconv/.libs/iconv.o: In function `_php_iconv_substr':
    /tmp/install_ispconfig/compile_aps/php-5.2.6/ext/iconv/iconv.c:723: undefined reference to `libiconv_open'
    /tmp/install_ispconfig/compile_aps/php-5.2.6/ext/iconv/iconv.c:802: undefined reference to `libiconv_close'
    /tmp/install_ispconfig/compile_aps/php-5.2.6/ext/iconv/iconv.c:806: undefined reference to `libiconv_close'
    /tmp/install_ispconfig/compile_aps/php-5.2.6/ext/iconv/iconv.c:747: undefined reference to `libiconv'
    /tmp/install_ispconfig/compile_aps/php-5.2.6/ext/iconv/iconv.c:755: undefined reference to `libiconv_open'
    ext/iconv/.libs/iconv.o: In function `php_iconv_string':
    /tmp/install_ispconfig/compile_aps/php-5.2.6/ext/iconv/iconv.c:441: undefined reference to `libiconv_open'
    /tmp/install_ispconfig/compile_aps/php-5.2.6/ext/iconv/iconv.c:453: undefined reference to `libiconv'
    /tmp/install_ispconfig/compile_aps/php-5.2.6/ext/iconv/iconv.c:467: undefined reference to `libiconv'
    /tmp/install_ispconfig/compile_aps/php-5.2.6/ext/iconv/iconv.c:478: undefined reference to `libiconv_close'
    ext/iconv/.libs/iconv.o: In function `_php_iconv_strpos':
    /tmp/install_ispconfig/compile_aps/php-5.2.6/ext/iconv/iconv.c:851: undefined reference to `libiconv_open'
    /tmp/install_ispconfig/compile_aps/php-5.2.6/ext/iconv/iconv.c:879: undefined reference to `libiconv'
    /tmp/install_ispconfig/compile_aps/php-5.2.6/ext/iconv/iconv.c:993: undefined reference to `libiconv_close'
    ext/iconv/.libs/iconv.o: In function `_php_iconv_mime_encode':
    /tmp/install_ispconfig/compile_aps/php-5.2.6/ext/iconv/iconv.c:1043: undefined reference to `libiconv_open'
    /tmp/install_ispconfig/compile_aps/php-5.2.6/ext/iconv/iconv.c:1057: undefined reference to `libiconv_open'
    /tmp/install_ispconfig/compile_aps/php-5.2.6/ext/iconv/iconv.c:1176: undefined reference to `libiconv'
    /tmp/install_ispconfig/compile_aps/php-5.2.6/ext/iconv/iconv.c:1128: undefined reference to `libiconv'
    /tmp/install_ispconfig/compile_aps/php-5.2.6/ext/iconv/iconv.c:1160: undefined reference to `libiconv'
    /tmp/install_ispconfig/compile_aps/php-5.2.6/ext/iconv/iconv.c:1228: undefined reference to `libiconv'
    /tmp/install_ispconfig/compile_aps/php-5.2.6/ext/iconv/iconv.c:1259: undefined reference to `libiconv'
    ext/iconv/.libs/iconv.o:/tmp/install_ispconfig/compile_aps/php-5.2.6/ext/iconv/iconv.c:1303: more undefined references to `libiconv' follow
    ext/iconv/.libs/iconv.o: In function `_php_iconv_mime_encode':
    /tmp/install_ispconfig/compile_aps/php-5.2.6/ext/iconv/iconv.c:1316: undefined reference to `libiconv_close'
    /tmp/install_ispconfig/compile_aps/php-5.2.6/ext/iconv/iconv.c:1319: undefined reference to `libiconv_close'
    ext/iconv/.libs/iconv.o: In function `php_iconv_stream_filter_dtor':
    /tmp/install_ispconfig/compile_aps/php-5.2.6/ext/iconv/iconv.c:2465: undefined reference to `libiconv_close'
    ext/iconv/.libs/iconv.o: In function `php_iconv_stream_filter_append_bucket':
    /tmp/install_ispconfig/compile_aps/php-5.2.6/ext/iconv/iconv.c:2615: undefined reference to `libiconv'
    /tmp/install_ispconfig/compile_aps/php-5.2.6/ext/iconv/iconv.c:2537: undefined reference to `libiconv'
    ext/iconv/.libs/iconv.o: In function `php_iconv_stream_filter_ctor':
    /tmp/install_ispconfig/compile_aps/php-5.2.6/ext/iconv/iconv.c:2491: undefined reference to `libiconv_open'
    collect2: ld returned 1 exit status
    make: *** [sapi/cli/php] Error 1
    ERROR: Could not make PHP
    cd: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    mv: cannot stat `binaries/aps.tar.gz': No such file or directory
    mv: cannot stat `binaries/spamassassin.tar.gz': No such file or directory
    mv: cannot stat `binaries/uudeview.tar.gz': No such file or directory
    mv: cannot stat `binaries/clamav.tar.gz': No such file or directory
    mv: cannot stat `binaries/cronolog': No such file or directory
    mv: cannot stat `binaries/cronosplit': No such file or directory
    mv: cannot stat `binaries/ispconfig_tcpserver': No such file or directory
    mv: cannot stat `binaries/zip': No such file or directory
    mv: cannot stat `binaries/unzip': No such file or directory
    tar: spamassassin.tar.gz: Cannot open: No such file or directory
    tar: Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error exit delayed from previous errors
    mv: cannot stat `spamassassin': No such file or directory
    tar: uudeview.tar.gz: Cannot open: No such file or directory
    tar: Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error exit delayed from previous errors
    mv: cannot stat `uudeview': No such file or directory
    tar: clamav.tar.gz: Cannot open: No such file or directory
    tar: Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error exit delayed from previous errors
    mv: cannot stat `clamav': No such file or directory
    tar: aps.tar.gz: Cannot open: No such file or directory
    tar: Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error exit delayed from previous errors
    ./setup2: line 888: ispconfig_tmp/php/bin/php: No such file or directory
    ERROR: The PHP binary coming with ISPConfig does not work properly on your system! The installation routine stops here!
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Which was the exact error message that you got on the shell?

    And do not run the setup script of this version or any other ispconfig version again before you had run:

    mkdir /root/ispconfig

    or you might loose all your settings.
     
  3. arastirici

    arastirici New Member

    I couldn't reinstall ispconfig after mkdir /root/ispconfig

    Ok I did "mkdir /root/ispconfig" and then I run ./setup

    I got a result as following;

    ...
    ...
    objects_API.lo Zend/zend_default_classes.lo Zend/zend_execute.lo sapi/apache2handler/mod_php5.lo sapi/apache2handler/sapi_apache2.lo sapi/apache2handler/apache_config.lo sapi/apache2handler/php_functions.lo main/internal_functions.lo -lcrypt -lz -lcrypt -lmm -lrt -lmysqlclient -lmhash -lmcrypt -lltdl -liconv -lgd -lfreetype -lcurl -lbz2 -lz -lpcre -lssl -lcrypto -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lcurl -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt -o libphp5.la

    Build complete.
    Don't forget to run 'make test'.

    Installing PHP SAPI module: apache2handler
    /usr/share/apache2/build/instdso.sh SH_LIBTOOL='/usr/lib/apr-1/build/libtool' libphp5.la /usr/lib/apache2
    /usr/lib/apr-1/build/libtool --mode=install cp libphp5.la /usr/lib/apache2/
    cp .libs/libphp5.so /usr/lib/apache2/libphp5.so
    cp .libs/libphp5.lai /usr/lib/apache2/libphp5.la
    libtool: install: warning: remember to run `libtool --finish /tmp/install_ispconfig/compile_aps/php-5.2.9/libs'
    chmod 755 /usr/lib/apache2/libphp5.so
    activating php5
    "php5" already present
    Installing build environment: /usr/lib/php/build/
    Installing header files: /usr/include/php/
    Installing helper programs: /usr/bin/
    program: phpize5
    program: php-config5
    Installing man pages: /usr/share/man/man1/
    page: phpize5.1
    page: php-config5.1
    Installing PDO headers: /usr/include/php/ext/pdo/
    ln: creating symbolic link `/root/ispconfig/php/php': No such file or directory
    cp: cannot create regular file `/root/ispconfig/php/php.ini': No such file or directory
    chmod: cannot access `/root/ispconfig/php/php.ini': No such file or directory
    chown: cannot access `/root/ispconfig/php/php.ini': No such file or directory
    ./compile: line 169: /root/ispconfig/php/bin/php: No such file or directory
    ERROR: The PHP binary coming with ISPConfig does not work properly on your system! The installation routine stops here!
    cd: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    mv: cannot stat `binaries/aps.tar.gz': No such file or directory
    mv: cannot stat `binaries/spamassassin.tar.gz': No such file or directory
    mv: cannot stat `binaries/uudeview.tar.gz': No such file or directory
    mv: cannot stat `binaries/clamav.tar.gz': No such file or directory
    mv: cannot stat `binaries/cronolog': No such file or directory
    mv: cannot stat `binaries/cronosplit': No such file or directory
    mv: cannot stat `binaries/ispconfig_tcpserver': No such file or directory
    mv: cannot stat `binaries/zip': No such file or directory
    mv: cannot stat `binaries/unzip': No such file or directory
    tar: spamassassin.tar.gz: Cannot open: No such file or directory
    tar: Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error exit delayed from previous errors
    mv: cannot stat `spamassassin': No such file or directory
    tar: uudeview.tar.gz: Cannot open: No such file or directory
    tar: Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error exit delayed from previous errors
    mv: cannot stat `uudeview': No such file or directory
    tar: clamav.tar.gz: Cannot open: No such file or directory
    tar: Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error exit delayed from previous errors
    mv: cannot stat `clamav': No such file or directory
    tar: aps.tar.gz: Cannot open: No such file or directory
    tar: Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error exit delayed from previous errors
    mv: cannot stat `ispconfig_tmp': No such file or directory
    cp: cannot stat `dist.info': No such file or directory
    All prerequisites are fulfilled.
    Here we go...
    chmod: cannot access `./install.php': No such file or directory

    ./setup2: line 1090: mysql_config: No such file or directory
    ./setup2: line 1091: httpd: No such file or directory
    ./setup2: line 1092: httpd2: No such file or directory
    ./setup2: line 1093: httpd2: No such file or directory
    ./setup2: line 1103: ip_addresses: No such file or directory
    ./setup2: line 1105: /root/ispconfig/php/php: No such file or directory
    ./setup2: line 1106: /root/ispconfig/dist.info: No such file or directory
    Restarting some services...
    which: no apachectl in (/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/libexec)
    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    ./setup2: line 1143: [: ==: unary operator expected
    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    Shutting down ISPConfig system...
    /etc/init.d/ispconfig_server: line 66: /root/ispconfig/httpd/bin/apachectl: No such file or directory
    ISPConfig system stopped!
    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    Starting ISPConfig system...
    /etc/init.d/ispconfig_server: line 45: /root/ispconfig/httpd/bin/apachectl: No such file or directory
    /etc/init.d/ispconfig_server: line 48: /root/ispconfig/php/php: No such file or directory
    ISPConfig system is now up and running!
    Congratulations! Your ISPConfig system is now installed. If you had to install quota, please take the steps described in the installation manual. Otherwise your system is now available without reboot.

    ./setup2: line 1189: cd: /tmp/install_ispconfig/compile_aps/../..: No such file or directory


    I got many errors as above. There is no file in /root/ispconfig
    php:/tmp/install_ispconfig # ls /root/ispconfig/
    isp
    php:/tmp/install_ispconfig # ls /root/ispconfig/isp/
    conf
    php:/tmp/install_ispconfig # ls /root/ispconfig/isp/conf/customized_templates/
    php:/tmp/install_ispconfig #

    How can I correct this ?
    Thanks
     
  4. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    df -h
    ?

    You can restore your previous installation from the backups in the /tmp directory.
     
  5. arastirici

    arastirici New Member

    result of df -h

    php:/tmp # df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/sda1 97G 2.7G 89G 3% /
    udev 2.0G 100K 2.0G 1% /dev
    /dev/sda2 39G 509M 37G 2% /var


    How can I restore the old configuration ?
     
  6. falko

    falko Super Moderator Howtoforge Staff

    Ok, space is not the problem.
    In the /tmp directory, there are two tar.gz files, one contains the /root/ispconfig directory and the other one the /home/admispconfig directory. And there's an SQL dump which contains the ISPConfig database.
     
  7. arastirici

    arastirici New Member

    I get some errors "undefined reference to `libiconv'"

    Hello

    Unfortunately there is no tar.gz file in /tmp directory like what you said.
    But I couldn't install ispconfig
    I start ./setup
    It goes well till the installation of php.
    I get some errors during installation php5.2.9 as follow;

    whereas libiconv is already installed.
    I had installed it.

    how can I fix that ?


    ext/iconv/.libs/iconv.o: In function `_php_iconv_appendl':
    /tmp/install_ispconfig/compile_aps/php-5.2.9/ext/iconv/iconv.c:348: undefined reference to `libiconv'
    /tmp/install_ispconfig/compile_aps/php-5.2.9/ext/iconv/iconv.c:385: undefined reference to `libiconv'
    ext/iconv/.libs/iconv.o: In function `_php_iconv_mime_decode':
    /tmp/install_ispconfig/compile_aps/php-5.2.9/ext/iconv/iconv.c:1354: undefined reference to `libiconv_open'
    /tmp/install_ispconfig/compile_aps/php-5.2.9/ext/iconv/iconv.c:1823: undefined reference to `libiconv_close'
    /tmp/install_ispconfig/compile_aps/php-5.2.9/ext/iconv/iconv.c:1826: undefined reference to `libiconv_close'
    /tmp/install_ispconfig/compile_aps/php-5.2.9/ext/iconv/iconv.c:1465: undefined reference to `libiconv_close'
    /tmp/install_ispconfig/compile_aps/php-5.2.9/ext/iconv/iconv.c:1468: undefined reference to `libiconv_open'
    ext/iconv/.libs/iconv.o: In function `_php_iconv_strlen':
    /tmp/install_ispconfig/compile_aps/php-5.2.9/ext/iconv/iconv.c:603: undefined reference to `libiconv_open'
    /tmp/install_ispconfig/compile_aps/php-5.2.9/ext/iconv/iconv.c:626: undefined reference to `libiconv'
    /tmp/install_ispconfig/compile_aps/php-5.2.9/ext/iconv/iconv.c:660: undefined reference to `libiconv_close'
    ext/iconv/.libs/iconv.o: In function `_php_iconv_substr':
    /tmp/install_ispconfig/compile_aps/php-5.2.9/ext/iconv/iconv.c:723: undefined reference to `libiconv_open'
    /tmp/install_ispconfig/compile_aps/php-5.2.9/ext/iconv/iconv.c:802: undefined reference to `libiconv_close'
    /tmp/install_ispconfig/compile_aps/php-5.2.9/ext/iconv/iconv.c:806: undefined reference to `libiconv_close'
    /tmp/install_ispconfig/compile_aps/php-5.2.9/ext/iconv/iconv.c:747: undefined reference to `libiconv'
    /tmp/install_ispconfig/compile_aps/php-5.2.9/ext/iconv/iconv.c:755: undefined reference to `libiconv_open'
    ext/iconv/.libs/iconv.o: In function `php_iconv_string':
    /tmp/install_ispconfig/compile_aps/php-5.2.9/ext/iconv/iconv.c:441: undefined reference to `libiconv_open'
    /tmp/install_ispconfig/compile_aps/php-5.2.9/ext/iconv/iconv.c:453: undefined reference to `libiconv'
    /tmp/install_ispconfig/compile_aps/php-5.2.9/ext/iconv/iconv.c:467: undefined reference to `libiconv'
    /tmp/install_ispconfig/compile_aps/php-5.2.9/ext/iconv/iconv.c:478: undefined reference to `libiconv_close'
    ext/iconv/.libs/iconv.o: In function `_php_iconv_strpos':
    /tmp/install_ispconfig/compile_aps/php-5.2.9/ext/iconv/iconv.c:851: undefined reference to `libiconv_open'
    /tmp/install_ispconfig/compile_aps/php-5.2.9/ext/iconv/iconv.c:879: undefined reference to `libiconv'
    /tmp/install_ispconfig/compile_aps/php-5.2.9/ext/iconv/iconv.c:993: undefined reference to `libiconv_close'
    ext/iconv/.libs/iconv.o: In function `_php_iconv_mime_encode':
    /tmp/install_ispconfig/compile_aps/php-5.2.9/ext/iconv/iconv.c:1043: undefined reference to `libiconv_open'
    /tmp/install_ispconfig/compile_aps/php-5.2.9/ext/iconv/iconv.c:1057: undefined reference to `libiconv_open'
    /tmp/install_ispconfig/compile_aps/php-5.2.9/ext/iconv/iconv.c:1176: undefined reference to `libiconv'
    /tmp/install_ispconfig/compile_aps/php-5.2.9/ext/iconv/iconv.c:1128: undefined reference to `libiconv'
    /tmp/install_ispconfig/compile_aps/php-5.2.9/ext/iconv/iconv.c:1160: undefined reference to `libiconv'
    /tmp/install_ispconfig/compile_aps/php-5.2.9/ext/iconv/iconv.c:1228: undefined reference to `libiconv'
    /tmp/install_ispconfig/compile_aps/php-5.2.9/ext/iconv/iconv.c:1259: undefined reference to `libiconv'
    ext/iconv/.libs/iconv.o:/tmp/install_ispconfig/compile_aps/php-5.2.9/ext/iconv/iconv.c:1303: more undefined references to `libiconv' follow
    ext/iconv/.libs/iconv.o: In function `_php_iconv_mime_encode':
    /tmp/install_ispconfig/compile_aps/php-5.2.9/ext/iconv/iconv.c:1316: undefined reference to `libiconv_close'
    /tmp/install_ispconfig/compile_aps/php-5.2.9/ext/iconv/iconv.c:1319: undefined reference to `libiconv_close'
    ext/iconv/.libs/iconv.o: In function `php_iconv_stream_filter_dtor':
    /tmp/install_ispconfig/compile_aps/php-5.2.9/ext/iconv/iconv.c:2465: undefined reference to `libiconv_close'
    ext/iconv/.libs/iconv.o: In function `php_iconv_stream_filter_append_bucket':
    /tmp/install_ispconfig/compile_aps/php-5.2.9/ext/iconv/iconv.c:2615: undefined reference to `libiconv'
    /tmp/install_ispconfig/compile_aps/php-5.2.9/ext/iconv/iconv.c:2537: undefined reference to `libiconv'
    ext/iconv/.libs/iconv.o: In function `php_iconv_stream_filter_ctor':
    /tmp/install_ispconfig/compile_aps/php-5.2.9/ext/iconv/iconv.c:2491: undefined reference to `libiconv_open'
    collect2: ld returned 1 exit status
    make: *** [sapi/cli/php] Error 1
     
  8. arastirici

    arastirici New Member

    I restored ispconfig2.2.25

    I managed to restore my old ispconfig2.2.25.
    I opened /tmp/install_ispconfig/compile_aps/compile
    I added --without-iconv at the section of php.
    I run ./setup . the setup goes well without any problem.
    It works as the old.

    Thanks
     

Share This Page