English 中文(简体)
图像Magick在指挥线上工作,但当场外出时,它用“不兼容的图书馆版本”返回5个。
原标题:ImageMagick works in command line but when exec() in php it returns 5 with "incompatible library version"

I m在SOS X使用MAMP(和Macports.I同时尝试的Magick(通线)时,有问题。

当我从国家情报和安全局那里指挥,该指挥部进行罚款。 但是,当我使用<代码>exec(>)进行准确的指挥时,它交还了<代码>5和在印页错误记录上的价值代码:我有:

dyld: Library not loaded: /opt/local/lib/libfreetype.6.dylib
Referenced from: /opt/local/bin/identify Reason: Incompatible library version: identify requires version 14.0.0 or later, but libfreetype.6.dylib provides version 13.0.0

E.g. The cli command is: /opt/local/bin/identify /Users/leonardteo/Documents/1.jpg

在从指挥线处被处决时,这只是罚款。 从PHP处执行:

exec(>/opt/ local/bin/identification /Users/leonardteo/Documents/1.jpg”,$output,$return);

5

检查沥滤记录使上述问题具有不固定的类型。

我利用Macports安装了图像Magick。 我也从源头试用了一本手册,从<代码>/usr/ local/bin/identies下载,我得出同样的结果。 我也尝试从Macports而不是MAMP操作PHP,我得出同样的结果。

Could someone please help shed light on this?

最佳回答

Edit this file:

Applications/MAMP/Library/bin/envvars

Comment out the following lines:

DYLD_LIBRaire_PATH=“/Applications/MAMP/Library/lib:$DYLD_LIBRaire_PATH”

出口

问题回答

暂无回答




相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签