Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #7297
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: dll load problem |
| Date | 2012-10-12 12:51 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <k59hr2$38j$1@dont-email.me> (permalink) |
| References | <k590tv$mdg$1@online.de> <k5943n$97u$3@dont-email.me> <k594ml$ovv$1@online.de> <k599mu$d5v$1@dont-email.me> <k59c2d$uhe$1@online.de> |
On 10/12/2012 11:17 AM, Philipp Kraus wrote: > On 2012-10-12 16:32:51 +0200, Jerry Stuckle said: > >> On 10/12/2012 9:12 AM, Philipp Kraus wrote: >>> On 2012-10-12 14:57:19 +0200, Jerry Stuckle said: >>> >>>> On 10/12/2012 8:07 AM, Philipp Kraus wrote: >>>>> Hello, >>>>> >>>>> I run on a shell execution my local git client and get the error: >>>>> >>>>> dyld: lazy symbol binding failed: Symbol not found: _iconv_open >>>>> Referenced from: /usr/local/git/bin/git >>>>> Expected in: /Applications/MAMP/Library/lib/libiconv.2.dylib >>>>> >>>>> The git client is linked to the system libraries and works, but if >>>>> I run >>>>> it from my PHP script >>>>> I get the error above. The script runs under OSX with PHP 5.4.4. >>>>> >>>>> (How) Can I change the search path of dynamic libraries? I think the >>>>> correct library that should >>>>> be use is under /usr/lib/libiconv.2.dylib >>>>> >>>>> Thanks >>>>> >>>>> Phil >>>>> >>>> >>>> This isn't a PHP problem. Ask in an OSX newsgroup. >>> >>> Are you sure? >>> Because if I run the command that is used by system / shell_exec >>> on command line it works, but it does not work on the PHP >>> function. >>> >>> Phil >>> >> >> Yes, I'm sure. Library loading is a function of the OS, not PHP. > > In this special case you're right, but which library is loaded is > depended on > the environment, so I can change library loading with the environment > configuration. > So this is than a PHP problem. The message points to that the wrong > library is loaded, > because if I run it from command line another library is loaded, on > command line it works. > If I run it from PHP also from the script environment, which is defined > by the php.ini and > the programming part (system, shell_exec, ...), there is an error, so I > think you are wrong > with your statement, that is _only_ OS function. I think there is a > problem with the environment > which is shown like the wrong library is loaded. > So I think it is here in the PHP newsgroup correct, because it is a > problem which library is loaded > within the PHP environment > > Phil > The environment is also a function of the OS, not PHP. And when you call git via a shell, you are no longer running under PHP. Yes, there are differences - for instance, the current directory may be different when starting the program from PHP. And while PHP can set some environment variables, nothing should affect a library being loaded by an external program (in fact, I'm not sure it can even do that, but I don't know OSX that well, either). But if your system is set up properly the library should be loaded by the system. -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ==================
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
dll load problem Philipp Kraus <philipp.kraus@flashpixx.de> - 2012-10-12 14:07 +0200
Re: dll load problem Jerry Stuckle <jstucklex@attglobal.net> - 2012-10-12 08:57 -0400
Re: dll load problem Philipp Kraus <philipp.kraus@flashpixx.de> - 2012-10-12 15:12 +0200
Re: dll load problem The Natural Philosopher <tnp@invalid.invalid> - 2012-10-12 14:50 +0100
Re: dll load problem Jerry Stuckle <jstucklex@attglobal.net> - 2012-10-12 10:34 -0400
Re: dll load problem Jerry Stuckle <jstucklex@attglobal.net> - 2012-10-12 10:32 -0400
Re: dll load problem Philipp Kraus <philipp.kraus@flashpixx.de> - 2012-10-12 17:17 +0200
Re: dll load problem Jerry Stuckle <jstucklex@attglobal.net> - 2012-10-12 12:51 -0400
Re: dll load problem Denis McMahon <denismfmcmahon@gmail.com> - 2012-10-13 00:40 +0000
csiph-web