Skip to content

Error load library #43

@UgoSansH

Description

@UgoSansH
  • Ubuntu server 12.10
  • Php : 5.4.6

CLI, I get this error:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/git2.so' - /usr/lib/php5/20100525/git2.so: undefined symbol: git_tree_create_fromindex in Unknown on line 0

on apache2

Apache2, I added an ini file in / etc/php5/apache2/conf.d/git2.ini.
Apache2 chage what file (phpinfo ()), but the library is not loaded.

I can not understand why.

I followed this procedure:

git clone https://github.com/libgit2/php-git.git --recursive
cd libgit2
mkdir build && cd build
cmake ..
cmake -DBUILD_SHARED_LIBS=OFF -build .
make
cd ../../
phpize
./configure
make
make install
sudo make install

Php re

php --re git2

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/git2.so' - /usr/lib/php5/20100525/git2.so: undefined symbol: git_tree_create_fromindex in Unknown on line 0
Exception: Extension git2 does not exist

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions