проблема с установкой php5-gd-5.3.11

Все о скриптах

Модераторы: Art.i, vasya

проблема с установкой php5-gd-5.3.11

Сообщение sever79 » Вт июн 05, 2012 2:01 pm

Приветствую!
Ставлю из портов php5-gd-5.3.11, порты обновил через portsnap update. В процессе ошибка:

root# cd /usr/ports/graphics/php5-gd
root# make install clean
===> php5-gd-5.3.11 depends on file: /usr/local/bin/phpize - found
===> php5-gd-5.3.11 depends on file: /usr/local/bin/autoconf-2.69 - found
===> php5-gd-5.3.11 depends on shared library: freetype.9 - found
===> php5-gd-5.3.11 depends on shared library: png.6 - not found
===> Verifying install for png.6 in /usr/ports/graphics/png
===> Returning to build of php5-gd-5.3.11
Error: shared library "png.6" does not exist
*** Error code 1

Stop in /usr/ports/graphics/php5-gd.
*** Error code 1

Stop in /usr/ports/graphics/php5-gd.
root#

Прошу подсказать, как поправить проблему.
sever79
 
Сообщений: 23
Зарегистрирован: Пт авг 26, 2011 12:16 pm

Re: проблема с установкой php5-gd-5.3.11

Сообщение ls » Вт июн 05, 2012 2:16 pm

Версия портов должна соответствовать версиям ПО которые стоят в системе.
php -v что показывает?
* FirstVDS в twitter в facebook и в вконтакте *
ls
Support team
 
Сообщений: 6405
Зарегистрирован: Чт мар 01, 2007 10:36 am
Откуда: FirstVDS

Re: проблема с установкой php5-gd-5.3.11

Сообщение sever79 » Вт июн 05, 2012 2:45 pm

Да, версия php была не та, решил пересобрать.

В итоге на этапе
cd /usr/ports/lang/php5-extensions/
make config-recursive && make install clean

получаем ту же ошибку:

****************************************************************************
===> Returning to build of php5-extensions-1.7
===> php5-extensions-1.7 depends on file: /usr/local/lib/php/20090626/gd.so - not found
===> Verifying install for /usr/local/lib/php/20090626/gd.so in /usr/ports/graphics/php5-gd
===> php5-gd-5.3.11 depends on file: /usr/local/bin/phpize - found
===> php5-gd-5.3.11 depends on file: /usr/local/bin/autoconf-2.69 - found
===> php5-gd-5.3.11 depends on shared library: freetype.9 - found
===> php5-gd-5.3.11 depends on shared library: png.6 - not found
===> Verifying install for png.6 in /usr/ports/graphics/png
===> Returning to build of php5-gd-5.3.11
Error: shared library "png.6" does not exist
*** Error code 1

Stop in /usr/ports/graphics/php5-gd.
*** Error code 1

Stop in /usr/ports/graphics/php5-gd.
*** Error code 1

Stop in /usr/ports/lang/php5-extensions.
*** Error code 1

Stop in /usr/ports/lang/php5-extensions.
artelx#
sever79
 
Сообщений: 23
Зарегистрирован: Пт авг 26, 2011 12:16 pm

Re: проблема с установкой php5-gd-5.3.11

Сообщение sever79 » Вт июн 05, 2012 3:35 pm

сделал:
# cd /usr/ports/graphics/png
# make
# make deinstall
# make install clean

запустил снова:
# cd /usr/ports/lang/php5-extensions/
# make config-recursive && make install clean

теперь нет ошибки
Error: shared library "png.6" does not exist

но есть ошибка:

Running tests...
Test project /usr/ports/graphics/png/work/libpng-1.5.10
Start 1: pngtest
1/2 Test #1: pngtest .......................... Passed 0.02 sec
Start 2: pngvalid
2/2 Test #2: pngvalid ......................... Passed 33.00 sec

100% tests passed, 0 tests failed out of 2

Total Test time (real) = 33.04 sec
===> Installing for png-1.5.10
===> Generating temporary packing list
===> Checking if graphics/png already installed
===> png-1.5.10 is already installed
You may wish to ``make deinstall'' and install this port again
by ``make reinstall'' to upgrade it properly.
If you really wish to overwrite the old port of graphics/png
without deleting it first, set the variable "FORCE_PKG_REGISTER"
in your environment or the "make install" command line.
*** Error code 1

Stop in /usr/ports/graphics/png.
*** Error code 1

Stop in /usr/ports/graphics/png.
*** Error code 1

Stop in /usr/ports/graphics/php5-gd.
*** Error code 1

Stop in /usr/ports/graphics/php5-gd.
*** Error code 1

Stop in /usr/ports/lang/php5-extensions.
*** Error code 1

Stop in /usr/ports/lang/php5-extensions.
artelx#


пробуем по другому:
# make config-recursive && make install clean -D FORCE_PKG_REGISTER

получаем:

....
===> php5-extensions-1.7 depends on file: /usr/local/include/php/main/php.h - found
===> php5-extensions-1.7 depends on file: /usr/local/lib/php/20090626/bcmath.so - found
===> php5-extensions-1.7 depends on file: /usr/local/lib/php/20090626/bz2.so - found
===> php5-extensions-1.7 depends on file: /usr/local/lib/php/20090626/calendar.so - found
===> php5-extensions-1.7 depends on file: /usr/local/lib/php/20090626/ctype.so - found
===> php5-extensions-1.7 depends on file: /usr/local/lib/php/20090626/curl.so - found
===> php5-extensions-1.7 depends on file: /usr/local/lib/php/20090626/dba.so - found
===> php5-extensions-1.7 depends on file: /usr/local/lib/php/20090626/dom.so - found
===> php5-extensions-1.7 depends on file: /usr/local/lib/php/20090626/exif.so - found
===> php5-extensions-1.7 depends on file: /usr/local/lib/php/20090626/fileinfo.so - found
===> php5-extensions-1.7 depends on file: /usr/local/lib/php/20090626/filter.so - found
===> php5-extensions-1.7 depends on file: /usr/local/lib/php/20090626/ftp.so - found
===> php5-extensions-1.7 depends on file: /usr/local/lib/php/20090626/gd.so - not found
===> Verifying install for /usr/local/lib/php/20090626/gd.so in /usr/ports/graphics/php5-gd
===> php5-gd-5.3.11 depends on file: /usr/local/bin/phpize - found
===> php5-gd-5.3.11 depends on file: /usr/local/bin/autoconf-2.69 - found
===> php5-gd-5.3.11 depends on shared library: freetype.9 - found
===> php5-gd-5.3.11 depends on shared library: png.6 - not found
===> Verifying install for png.6 in /usr/ports/graphics/png
===> Installing for png-1.5.10
===> Generating temporary packing list
[ 46%] Built target png15
[ 93%] Built target png15_static
[ 96%] Built target pngtest
[100%] Built target pngvalid
Installing the project stripped...
-- Install configuration: "Release"
-- Installing: /usr/local/lib/libpng15.so.15.10
-- Installing: /usr/local/lib/libpng15.so.15
-- Up-to-date: /usr/local/lib/libpng15.so
-- Up-to-date: /usr/local/lib/libpng.so
-- Installing: /usr/local/lib/libpng15.a
-- Up-to-date: /usr/local/lib/libpng.a
-- Up-to-date: /usr/local/include/png.h
-- Up-to-date: /usr/local/include/pngconf.h
-- Installing: /usr/local/include/pnglibconf.h
-- Up-to-date: /usr/local/include/libpng15/png.h
-- Up-to-date: /usr/local/include/libpng15/pngconf.h
-- Installing: /usr/local/include/libpng15/pnglibconf.h
-- Up-to-date: /usr/local/bin/libpng-config
-- Installing: /usr/local/bin/libpng15-config
-- Installing: /usr/local/man/man3/libpng.3
-- Installing: /usr/local/man/man3/libpngpf.3
-- Installing: /usr/local/man/man5/png.5
-- Up-to-date: /usr/local/libdata/pkgconfig/libpng.pc
-- Up-to-date: /usr/local/bin/libpng-config
-- Installing: /usr/local/libdata/pkgconfig/libpng15.pc
-- Up-to-date: /usr/local/bin/libpng15-config
-- Installing: /usr/local/lib/libpng/libpng15.cmake
-- Installing: /usr/local/lib/libpng/libpng15-release.cmake
install -o root -g wheel -m 444 /usr/ports/graphics/png/work/libpng-1.5.10/pngdebug.h /usr/ports/graphics/png/work/libpng-1.5.10/pnginfo.h /usr/ports/graphics/png/work/libpng-1.5.10/pngpriv.h /usr/ports/graphics/png/work/libpng-1.5.10/pngstruct.h /usr/local/include/libpng15/
/bin/rmdir /usr/local/include/libpng
/bin/rm /usr/local/libdata/pkgconfig/libpng.pc
/bin/ln -sf libpng15.pc /usr/local/libdata/pkgconfig/libpng.pc
/bin/rm /usr/local/lib/libpng15.so.15
/bin/mv /usr/local/lib/libpng15.so.15.10 /usr/local/lib/libpng15.so.15
===> Compressing manual pages for png-1.5.10
===> Running ldconfig
/sbin/ldconfig -m /usr/local/lib
===> Registering installation for png-1.5.10
===> Returning to build of php5-gd-5.3.11
Error: shared library "png.6" does not exist
*** Error code 1

Stop in /usr/ports/graphics/php5-gd.
*** Error code 1

Stop in /usr/ports/graphics/php5-gd.
*** Error code 1

Stop in /usr/ports/lang/php5-extensions.
*** Error code 1

Stop in /usr/ports/lang/php5-extensions.
artelx#
sever79
 
Сообщений: 23
Зарегистрирован: Пт авг 26, 2011 12:16 pm

Re: проблема с установкой php5-gd-5.3.11

Сообщение ls » Вт июн 05, 2012 3:36 pm

Пересоберите только порт /usr/ports/graphics/png
* FirstVDS в twitter в facebook и в вконтакте *
ls
Support team
 
Сообщений: 6405
Зарегистрирован: Чт мар 01, 2007 10:36 am
Откуда: FirstVDS

Re: проблема с установкой php5-gd-5.3.11

Сообщение sever79 » Вт июн 05, 2012 3:41 pm

После сборки новой PHP мне надо установить все расширения к php, а не только png, или я что то не так понимаю?
Последний раз редактировалось sever79 Вт июн 05, 2012 3:45 pm, всего редактировалось 1 раз.
sever79
 
Сообщений: 23
Зарегистрирован: Пт авг 26, 2011 12:16 pm

Re: проблема с установкой php5-gd-5.3.11

Сообщение sever79 » Вт июн 05, 2012 3:45 pm

ls писал(а):Пересоберите только порт /usr/ports/graphics/png


сделал:
Код: выделить все
artelx# cd /usr/ports/graphics/png
artelx# make
===>  License check disabled, port has not defined LICENSE
===>  Found saved configuration for png-1.5.10
=> libpng-1.5.10.tar.xz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch http://heanet.dl.sourceforge.net/project/libpng/libpng15/1.5.10/libpng-1.5.10.tar.xz
libpng-1.5.10.tar.xz                          100% of  686 kB  187 kBps
===>  Extracting for png-1.5.10
=> SHA256 Checksum OK for libpng-1.5.10.tar.xz.
===>  Patching for png-1.5.10
===>  Applying FreeBSD patches for png-1.5.10
/usr/bin/sed -i.bak  -e 's|RELEASE}.0|RELEASE}|'  -e 's|LIBDIR}/pkgconfig|LIBDIR}data/pkgconfig|'  /usr/ports/graphics/png/work/libpng-1.5.10/CMakeLists.txt
===>   png-1.5.10 depends on file: /usr/local/bin/cmake - found
===>  Configuring for png-1.5.10
/bin/mkdir -p /usr/ports/graphics/png/work/libpng-1.5.10
-- The C compiler identification is GNU 4.2.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.3")
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_CXX_COMPILER
    CMAKE_CXX_FLAGS
    CMAKE_CXX_FLAGS_DEBUG
    CMAKE_CXX_FLAGS_RELEASE
    CMAKE_C_FLAGS_DEBUG
    CMAKE_MODULE_LINKER_FLAGS
    THREADS_HAVE_PTHREAD_ARG


-- Build files have been written to: /usr/ports/graphics/png/work/libpng-1.5.10
===>  Building for png-1.5.10
Scanning dependencies of target png15
[  3%] Building C object CMakeFiles/png15.dir/png.o
[  6%] Building C object CMakeFiles/png15.dir/pngerror.o
[  9%] Building C object CMakeFiles/png15.dir/pngget.o
[ 12%] Building C object CMakeFiles/png15.dir/pngmem.o
[ 15%] Building C object CMakeFiles/png15.dir/pngpread.o
[ 18%] Building C object CMakeFiles/png15.dir/pngread.o
[ 21%] Building C object CMakeFiles/png15.dir/pngrio.o
[ 25%] Building C object CMakeFiles/png15.dir/pngrtran.o
[ 28%] Building C object CMakeFiles/png15.dir/pngrutil.o
[ 31%] Building C object CMakeFiles/png15.dir/pngset.o
[ 34%] Building C object CMakeFiles/png15.dir/pngtrans.o
[ 37%] Building C object CMakeFiles/png15.dir/pngwio.o
[ 40%] Building C object CMakeFiles/png15.dir/pngwrite.o
[ 43%] Building C object CMakeFiles/png15.dir/pngwtran.o
[ 46%] Building C object CMakeFiles/png15.dir/pngwutil.o
Linking C shared library libpng15.so
[ 46%] Built target png15
Scanning dependencies of target png15_static
[ 50%] Building C object CMakeFiles/png15_static.dir/png.o
[ 53%] Building C object CMakeFiles/png15_static.dir/pngerror.o
[ 56%] Building C object CMakeFiles/png15_static.dir/pngget.o
[ 59%] Building C object CMakeFiles/png15_static.dir/pngmem.o
[ 62%] Building C object CMakeFiles/png15_static.dir/pngpread.o
[ 65%] Building C object CMakeFiles/png15_static.dir/pngread.o
[ 68%] Building C object CMakeFiles/png15_static.dir/pngrio.o
[ 71%] Building C object CMakeFiles/png15_static.dir/pngrtran.o
[ 75%] Building C object CMakeFiles/png15_static.dir/pngrutil.o
[ 78%] Building C object CMakeFiles/png15_static.dir/pngset.o
[ 81%] Building C object CMakeFiles/png15_static.dir/pngtrans.o
[ 84%] Building C object CMakeFiles/png15_static.dir/pngwio.o
[ 87%] Building C object CMakeFiles/png15_static.dir/pngwrite.o
[ 90%] Building C object CMakeFiles/png15_static.dir/pngwtran.o
[ 93%] Building C object CMakeFiles/png15_static.dir/pngwutil.o
Linking C static library libpng15.a
[ 93%] Built target png15_static
Scanning dependencies of target pngtest
[ 96%] Building C object CMakeFiles/pngtest.dir/pngtest.o
Linking C executable pngtest
[ 96%] Built target pngtest
Scanning dependencies of target pngvalid
[100%] Building C object CMakeFiles/pngvalid.dir/contrib/libtests/pngvalid.o
Linking C executable pngvalid
[100%] Built target pngvalid
Running tests...
Test project /usr/ports/graphics/png/work/libpng-1.5.10
    Start 1: pngtest
1/2 Test #1: pngtest ..........................   Passed    0.02 sec
    Start 2: pngvalid
2/2 Test #2: pngvalid .........................   Passed   22.41 sec

100% tests passed, 0 tests failed out of 2

Total Test time (real) =  22.44 sec
artelx# make install
===>  Installing for png-1.5.10
===>   Generating temporary packing list
===>  Checking if graphics/png already installed
===>   png-1.5.10 is already installed
      You may wish to ``make deinstall'' and install this port again
      by ``make reinstall'' to upgrade it properly.
      If you really wish to overwrite the old port of graphics/png
      without deleting it first, set the variable "FORCE_PKG_REGISTER"
      in your environment or the "make install" command line.
*** Error code 1

Stop in /usr/ports/graphics/png.
*** Error code 1

Stop in /usr/ports/graphics/png.

artelx# make deinstall
===>  Deinstalling for graphics/png
===>   Deinstalling png-1.5.10
pkg_delete: package 'png-1.5.10' is required by these other packages
and may not be deinstalled (but I'll delete it anyway):
php53-gd-5.3.13_1
artelx# make install clean
===>  Installing for png-1.5.10
===>   Generating temporary packing list
===>  Checking if graphics/png already installed
[ 46%] Built target png15
[ 93%] Built target png15_static
[ 96%] Built target pngtest
[100%] Built target pngvalid
Installing the project stripped...
-- Install configuration: "Release"
-- Installing: /usr/local/lib/libpng15.so.15.10
-- Installing: /usr/local/lib/libpng15.so.15
-- Installing: /usr/local/lib/libpng15.so
-- Installing: /usr/local/lib/libpng.so
-- Installing: /usr/local/lib/libpng15.a
-- Installing: /usr/local/lib/libpng.a
-- Installing: /usr/local/include/png.h
-- Installing: /usr/local/include/pngconf.h
-- Installing: /usr/local/include/pnglibconf.h
-- Installing: /usr/local/include/libpng15/png.h
-- Installing: /usr/local/include/libpng15/pngconf.h
-- Installing: /usr/local/include/libpng15/pnglibconf.h
-- Installing: /usr/local/bin/libpng-config
-- Installing: /usr/local/bin/libpng15-config
-- Installing: /usr/local/man/man3/libpng.3
-- Installing: /usr/local/man/man3/libpngpf.3
-- Installing: /usr/local/man/man5/png.5
-- Installing: /usr/local/libdata/pkgconfig/libpng.pc
-- Up-to-date: /usr/local/bin/libpng-config
-- Installing: /usr/local/libdata/pkgconfig/libpng15.pc
-- Up-to-date: /usr/local/bin/libpng15-config
-- Installing: /usr/local/lib/libpng/libpng15.cmake
-- Installing: /usr/local/lib/libpng/libpng15-release.cmake
install  -o root -g wheel -m 444 /usr/ports/graphics/png/work/libpng-1.5.10/pngdebug.h /usr/ports/graphics/png/work/libpng-1.5.10/pnginfo.h  /usr/ports/graphics/png/work/libpng-1.5.10/pngpriv.h /usr/ports/graphics/png/work/libpng-1.5.10/pngstruct.h  /usr/local/include/libpng15/
/bin/rmdir /usr/local/include/libpng
/bin/rm /usr/local/libdata/pkgconfig/libpng.pc
/bin/ln -sf libpng15.pc /usr/local/libdata/pkgconfig/libpng.pc
/bin/rm /usr/local/lib/libpng15.so.15
/bin/mv /usr/local/lib/libpng15.so.15.10 /usr/local/lib/libpng15.so.15
===>   Compressing manual pages for png-1.5.10
===>   Running ldconfig
/sbin/ldconfig -m /usr/local/lib
===>   Registering installation for png-1.5.10
===>  Cleaning for png-1.5.10
artelx#
sever79
 
Сообщений: 23
Зарегистрирован: Пт авг 26, 2011 12:16 pm

Re: проблема с установкой php5-gd-5.3.11

Сообщение ls » Вт июн 05, 2012 8:09 pm

Поставилось, теперь ставьте php5-gd
* FirstVDS в twitter в facebook и в вконтакте *
ls
Support team
 
Сообщений: 6405
Зарегистрирован: Чт мар 01, 2007 10:36 am
Откуда: FirstVDS


Вернуться в CGI, Perl, PHP

Кто сейчас на форуме

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 3