bzick / php-sass

SASS PHP extension
31 stars 5 forks source link

Failed to load on php 5.4 #2

Open gwijayas opened 11 years ago

gwijayas commented 11 years ago

My PHP version is php 5.4.11. When invoke php from CLI (php -m), I got this error message:

PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php54/lib/php/20100525/sass.so' - /opt/php54/lib/php/20100525/sass.so: undefined symbol: _ZN4Sass9Constants7rgb_kwdE in Unknown on line 0
bzick commented 11 years ago

Hi, how do you installed the extension?

gwijayas commented 11 years ago

These command on installing :

$ cd php-sass/
$ git submodule init
$ git submoule update 
Submodule 'libsass' (git@github.com:bzick/libsass.git) registered for path 'libsass'
git submodule update
Cloning into 'libsass'...
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
Clone of 'git@github.com:bzick/libsass.git' into submodule path 'libsass' failed
$ rm -fR libsass
$ git clone git://github.com/hcatlin/libsass.git
$ /opt/php/bin/phpize
Configuring for:
PHP Api Version:         20100412
Zend Module Api No:      20100525
Zend Extension Api No:   220100525
$ ./configure --with-sass --with-php-config=/opt/php_debug/bin/php-config
$ make && make install
Installing shared extensions:     /opt/php/lib/php/20100525/
$ /opt/php/bin/php -m
PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php/lib/php/20100525/sass.so' - /opt/php/lib/php/20100525/sass.so: undefined symbol: _ZN4Sass9Constants7rgb_kwdE in Unknown on line 0
gwijayas commented 11 years ago

It failed too on php 5.3.20. So I tried libsass from your repository, it is success for php 5.4 and 5.3

There is an error in .gitmodules? Like my error messages above, failed to download your libsass. I change like this to download with git-submodule:

[submodule "libsass"]
        path = libsass
        url = https://github.com/bzick/libsass.git

to be able submodule pull