Две проблемы с убунтой

Discussion in 'Безопасность и Анонимность' started by Apeckou, 3 Dec 2011.

  1. Apeckou

    Apeckou Elder - Старейшина

    Joined:
    23 Jan 2007
    Messages:
    143
    Likes Received:
    11
    Reputations:
    0
    Проблема с убунтой

    Здравствуйте, у меня очередная проблема с ubuntu+php

    Не могу поставить пакет uploadprogress.
    Когда ввожу команду pecl install uploadprogress, он сообщает об ошибке:
    Code:
    root@www:~# pecl install uploadprogress
    downloading uploadprogress-1.0.3.1.tgz ...
    Starting to download uploadprogress-1.0.3.1.tgz (9,040 bytes)
    .....done: 9,040 bytes
    4 source files, building
    running: phpize
    Cannot find config.m4.
    Make sure that you run '/usr/bin/phpize' in the top level source directory of the module
    
    ERROR: `phpize' failed
    
    я подумал что это из-за того что не установлен php5-dev, установил его командой apt-get install php5-dev

    но ничего так и не изменилось, пакет uploadprogress по-прежнему не ставится с той же ошибкой. что делать?
     
    #1 Apeckou, 3 Dec 2011
    Last edited: 3 Dec 2011
  2. AnGeI

    AnGeI Elder - Старейшина

    Joined:
    8 Dec 2008
    Messages:
    396
    Likes Received:
    79
    Reputations:
    16
    https://bugs.php.net/bug.php?id=58650
     
  3. Apeckou

    Apeckou Elder - Старейшина

    Joined:
    23 Jan 2007
    Messages:
    143
    Likes Received:
    11
    Reputations:
    0
    нифига я там так и не понял че делать
     
  4. b3

    b3 Moderator

    Joined:
    5 Dec 2004
    Messages:
    2,041
    Likes Received:
    933
    Reputations:
    199
    абидно, но у меня всё окай:
    покажите результат phpize
     
    _________________________
  5. Apeckou

    Apeckou Elder - Старейшина

    Joined:
    23 Jan 2007
    Messages:
    143
    Likes Received:
    11
    Reputations:
    0
    Как его показать? Что жать, куда вписывать, откуда выдирать?)


    Это чтоли?

    root@www:~/xhprof-0.9.2/extension# phpize
    Configuring for:
    PHP Api Version: 20041225
    Zend Module Api No: 20060613
    Zend Extension Api No: 220060519
     
  6. b3

    b3 Moderator

    Joined:
    5 Dec 2004
    Messages:
    2,041
    Likes Received:
    933
    Reputations:
    199
    Перейдите в каталог /tmp/pear/download/uploadprogress-1.0.3.1 там phpize потом:
    2) ./configure
    3) make && make install
     
    _________________________
  7. Apeckou

    Apeckou Elder - Старейшина

    Joined:
    23 Jan 2007
    Messages:
    143
    Likes Received:
    11
    Reputations:
    0
    я сделал следующее::

    wget http://pecl.php.net/get/uploadprogress
    tar -xvzf uploadprogress
    root@www:~# cd ./uploadprogress-1.0.3.1
    root@www:~/uploadprogress-1.0.3.1# phpize
    root@www:~/uploadprogress-1.0.3.1# ./configure
    root@www:~/uploadprogress-1.0.3.1# make


    вот что это дало:

    ----------------------------------------------------------------------
    Libraries have been installed in:
    /root/uploadprogress-1.0.3.1/modules

    If you ever happen to want to link against installed libraries
    in a given directory, LIBDIR, you must either use libtool, and
    specify the full pathname of the library, or use the `-LLIBDIR'
    flag during linking and do at least one of the following:
    - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
    during execution
    - add LIBDIR to the `LD_RUN_PATH' environment variable
    during linking
    - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
    - have your system administrator add LIBDIR to `/etc/ld.so.conf'

    See any operating system documentation about shared libraries for
    more information, such as the ld(1) and ld.so(8) manual pages.
    ----------------------------------------------------------------------

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

    root@www:~/uploadprogress-1.0.3.1# make test

    Добавил исключение extension=uploadprogress.so в php.ini

    перезапустил апач...все равно не работает, хотя в phpinfo() указано что uploadprogress есть...пиздец какой-то*(
     
  8. Apeckou

    Apeckou Elder - Старейшина

    Joined:
    23 Jan 2007
    Messages:
    143
    Likes Received:
    11
    Reputations:
    0
    короче нихуя не помогло. пришлось поставить Дебиан и все решилось
     
  9. b3

    b3 Moderator

    Joined:
    5 Dec 2004
    Messages:
    2,041
    Likes Received:
    933
    Reputations:
    199
    Я бы конечно советовал до конца разбираться в проблеме а не инсталить каждый раз новую ОС под определенный софт.
    Не исключение а расширение.
     
    _________________________
  10. Apeckou

    Apeckou Elder - Старейшина

    Joined:
    23 Jan 2007
    Messages:
    143
    Likes Received:
    11
    Reputations:
    0
    да, точняк.

    только проект надо было сдать человеку,а нифига не работало) вот и мурыжились