PHP returns strange error from CLI
Does anyone know why I always get this error:
libdc1394 error: Fa开发者_运维百科iled to initialize libdc1394
when I try to call PHP from CLI?
Is there any chance to disable loading this module?
Any experience with it?
A quick google search would give you Scripty's link, but it wont disable the module. Your php (cli) is trying to a load a module that can't be initialized. To disable it, look for the ini file that loads the libdc1394*.so (* stands for any number of characters) file in the php/conf.d directory. To find it, in a typical default install of Linux, run this command :
grep .so /etc/php5/cli/conf.d/*.ini
This will give you list of file names and the ".so" files they load. If you spot the right extension, open the conf file and add a '#' in front of the line that starts with 'extension='
#extension=libdc1394*.so
精彩评论