问题描述
即时得到我的开发机器上执行以下。
Im getting the following on my developer machine.
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/gd.so' - /usr/lib/php5/20100525/gd.so: failed to map segment from shared object: Cannot allocate memory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/mcrypt.so' - /usr/lib/php5/20100525/mcrypt.so: failed to map segment from shared object: Cannot allocate memory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/mysql.so' - /usr/lib/php5/20100525/mysql.so: failed to map segment from shared object: Cannot allocate memory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/mysqli.so' - /usr/lib/php5/20100525/mysqli.so: failed to map segment from shared object: Cannot allocate memory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/pdo_mysql.so' - /usr/lib/php5/20100525/pdo_mysql.so: failed to map segment from shared object: Cannot allocate memory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/imagick.so' - /usr/lib/php5/20100525/imagick.so: failed to map segment from shared object: Cannot allocate memory in Unknown on line 0
什么是怎么回事任何想法?我运行的mediawiki,并为每个页面加载这些警告出现。
Any ideas on what is going on here? I'm running mediawiki and for each pageload these warnings appear.
在警告消息中引用的文件存在,而且我已经试过提高php.ini中的memory_limit的指令无济于事。我如何能与此进行任何建议?
The files referenced in the warning messages exists and i've tried raising the memory_limit directive in php.ini to no avail. Any suggestions on how i can proceed with this?
不管这些警告,在Web应用程序似乎采取任何伤害。
Regardless of these warnings, the web application seems to take no harm.
推荐答案
在这里同样的问题。这似乎与到MediaWiki 1.21。我升级从1.20至1.21的Wiki不改变任何已安装的软件包,并得到这个错误了。
Same issue here. This seems to be related to MediaWiki 1.21. I upgraded a Wiki from 1.20 to 1.21 without changing any installed packages, and get this error too.
图像缩略图。
如果我回滚到1.20,东西再工作。
If I roll back to 1.20, things work again.
更新
所以,我试图在这里解决这个问题,只有这些工作的事情是降级到MediaWiki 1.20.6,那里的SVG图像图像其它尺寸或格式转换的适用于所有支持的转换器。
So I have tried to fix the issue here, and the only thing which worked was to downgrade to MediaWiki 1.20.6, where conversions of images to other sizes or formats for SVG images works with all supported converters.
如果你没有在升级前将数据库的备份,你可以使用特殊:导出到转储所有页面,并导入到一个空的安装
If you do not have a backup of your database before the upgrade, you can use Special:Export to dump all pages, and import that into an empty installation.
这篇关于PHP的警告:PHP启动:无法加载动态库'...'未能映射从共享对象段:在未知无法分配内存在线0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!