ERROR: json library is not installed

pito
14 years, 7 months ago
I would like to ask if someone can help me in connection with Extensions topic. I can not customize my web portal because of " ERROR: json library is not installed"....


Thanks

Pito
fradp
14 years, 7 months ago
I also can not customize my web portal because of " ERROR: json library is not installed".

Why nobody answers?????
louminsk
14 years, 7 months ago
Same error here..joomla 1.5.15
louminsk
14 years, 7 months ago
ok problem solve
my server is running centos and the json library is nost installed

i was following this
Installing JSON on CentOS 5.4

I’ve been toying around with ExtJS for the past few days and wanted to start using JSON to insert data into my widgets. To my surprise (or lack thereof) CentOS does not include the JSON library with any of the default installed binaries. Below is how to go about installing JSON support for php:

Update PHP

yum update php

Install the PHP development package

yum install php-devel

Install pear for php

yum install php-pear

Use pecl (from pear installation) to buildinstall JSON

pecl install json

Create json.ini for your php installation

echo "extension=json.so" > /etc/php.d/json.ini

Reload Apache

service httpd restart

At this point, if you see the below when you look at the output of phpino(); you have successfully installed json.
pearj
14 years, 7 months ago
The reason json isn't in Centos 5.4 is because the json libaries are only included in php 5.2.0 and above.
php.net/manual/en/function.json-encode.php
Centos 5.4 only uses PHP 5.1.6 by default. So you either have to use the pecl extension above. Or install PHP from a different repository.

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.