Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> PHP 4.4.7 i PHP 5.2.3 make
Elber
post
Post #1





Grupa: Zarejestrowani
Postów: 381
Pomógł: 12
Dołączył: 9.07.2007

Ostrzeżenie: (0%)
-----


Witam, zainstalowałem MySQL 5.0.41 następnie OpenSSL 0.9.8e potem Apache2.2.4 wszystko według Tego poradnika, i wszystko działa poprawnie, więc zaczynam instalować PHP 4.4.7 ściągam, wypakowywuje, przechodzę do katalogu z wypakowanym php i daje:
Kod
./configure --prefix=/usr/local/php4 --with-config-file-path=/usr/local/php4 --sysconfdir=/usr/local/php4 --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --with-openssl=/usr/local/ssl --enable-discard-path --enable-debug --enable-track-vars --enable-versioning --with-openssl=/usr/local/ssl --with-xml --enable-bcmath --with-bz2 --enable-calendar --with-jpeg-dir=/usr/local --with-png-dir=/usr/lib --with-tiff-dir=/usr/local --with-ttf=/usr/lib --with-curl --with-db --with-dbase --with-pear --enable-exif --enable-ftp --with-gettext --with-iconv --enable-mbstring --with-mcrypt --with-mhash --with-zlib --with-gd --with-gd-native-ttf --with-xslt-sablot=/usr/lib --enable-xslt --enable-wddx --with-kerberos --with-ncurses

Nie wykrywa mi żadnego błędu, więc daje make a tutaj po dłuższej chwili wywala mi:
Kod
collect2: ld returned 1 exit status
make: *** [libphp4.la] Error

Co mam robić?? Pomocy


--------------------
GG: 564555
Go to the top of the page
+Quote Post
Cysiaczek
post
Post #2





Grupa: Moderatorzy
Postów: 4 465
Pomógł: 137
Dołączył: 26.03.2004
Skąd: Gorzów Wlkp.




Upewnij się, że masz wszystkie narzedzia niezbędne do kompilacji.
gcc
make
automake
[...]


Problem dotyczy dynamicznego lączenia bibliotek, wiec zobacz, czy ścieżki masz poprawne.

Pozdrawiam.


--------------------
To think for yourself you must question authority and
learn how to put yourself in a state of vulnerable, open-mindedness;
chaotic, confused, vulnerability, to inform yourself.
Think for yourself. Question authority.
Go to the top of the page
+Quote Post
Elber
post
Post #3





Grupa: Zarejestrowani
Postów: 381
Pomógł: 12
Dołączył: 9.07.2007

Ostrzeżenie: (0%)
-----


Mam bo przecież mysql, openssl, apache2 mi sie zainstalowało.


--------------------
GG: 564555
Go to the top of the page
+Quote Post
PiotrLegnica
post
Post #4





Grupa: Zarejestrowani
Postów: 71
Pomógł: 2
Dołączył: 6.07.2005
Skąd: Legnica

Ostrzeżenie: (0%)
-----


Wrzuć cały output z make na pastebin, bo z tego co dałeś można wywnioskować tyle, że linkerowi coś się nie podoba.


--------------------
SithTemplate
Go to the top of the page
+Quote Post
Elber
post
Post #5





Grupa: Zarejestrowani
Postów: 381
Pomógł: 12
Dołączył: 9.07.2007

Ostrzeżenie: (0%)
-----


Teraz próbuje zainstalować PHP 5.2.3, konfiguruje poleceniem:
Kod
./configure --prefix=/usr/local/php5 --with-config-file-path=/usr/local/php5 --sysconfdir=/usr/local/php5 --with-mysql=/usr/local/mysql --with-zlib --with-bzip --with-gd --enable-force-cgi-redirect --enable-bcmath --enable-calendar --enable-ctype --enable-dbase --enable-discard-path --enable-exif --enable-filepro --enable-ftp --enable-gd-imgstrttf --enable-gd-native-ttf --enable-inline-optimization --enable-mbstr-enc-trans --enable-mbstring --enable-mbregex --enable-track-vars --enable-versioning --enable-wddx --enable-bz2 --with-dom=/usr/include/libxml2 --with-ftp --with-gettext --with-gmp --with-jpeg-dir=/usr/local --with-mcal=/usr/include --with-mcrypt --with-mhash --with-png-dir=/usr/lib --with-iconv --with-ncurses --with-xml --with-xslt-sablot=/usr/lib --enable-xslt --with-kerberos --enable-fastcgi --with-openssl=/usr/local/ssl --with-tiff-dir=/usr/local --with-curl

Wszystko ładnie konfiguruje, przychodzi czas na make, daje make i leci, bardzo długo leci aż wkońcu wywala błąd:
Kod
ext/iconv/iconv.o:/root/php-5.2.3/ext/iconv/iconv.c:1286: more undefined references to `libiconv' follow
ext/iconv/iconv.o: In function `php_iconv_stream_filter_ctor':
/root/php-5.2.3/ext/iconv/iconv.c:2426: undefined reference to `libiconv_open'
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php-cgi] Error 1

Co mam zrobić??


--------------------
GG: 564555
Go to the top of the page
+Quote Post
PiotrLegnica
post
Post #6





Grupa: Zarejestrowani
Postów: 71
Pomógł: 2
Dołączył: 6.07.2005
Skąd: Legnica

Ostrzeżenie: (0%)
-----


Nie masz libiconv.


--------------------
SithTemplate
Go to the top of the page
+Quote Post
Elber
post
Post #7





Grupa: Zarejestrowani
Postów: 381
Pomógł: 12
Dołączył: 9.07.2007

Ostrzeżenie: (0%)
-----


Co do php4:
Co mam wrzucić??
PHP5:
Mam, a gdy wpisze aptitude search libiconv to mam:
Kod
Debian-40-etch-32-minimal:~/php-4.4.7# aptitude search libiconv
i   libiconv-hook-dev               - header files of libiconv-hook
i A libiconv-hook1                  - extension of iconv for libapache-mod-encod
i   libiconv-ruby                   - A Wrapper class of iconv for the Ruby
v   libiconv-ruby1.8                -
Debian-40-etch-32-minimal:~/php-4.4.7#

Wszystko z tego zainstalowałem.

I gdzie mam zobaczy czy mam ścieżki poprawne??

Lub może mi ktoś powie jak zainstalować php4 lub php5, co włączyć w ./configure??


--------------------
GG: 564555
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 04:48