Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I experience issue with the following code (MacOSX Sierra, Perl 5.24.0, librairies supplied via Homebrew, shell is zsh)
#!/Users/landry/perl5/perlbrew/perls/stable/bin/perl use strict; my @args= ("gcc","-o /usr/local/bin/dcraw -O4","/Users/landry/Desk +top/dcraw.c","-I/usr/local/include -L/usr/local/lib -lm -ljasper -ljp +eg -llcms2"); system(@args);
Running this script lead to the following error:
/Users/landry/Desktop/dcraw.c:77:10: fatal error: 'jasper/jasper.h' file not found
Running the gcc command directly to the shell does not produce any error. I do not have any clue why running the command through 'system' does not seems find the library. Thanks for your suggestions.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Issue with 'system'
by Corion (Patriarch) on Oct 15, 2016 at 18:01 UTC | |
by Anonymous Monk on Oct 15, 2016 at 20:08 UTC | |
|
Re: Issue with 'system'
by shmem (Chancellor) on Oct 15, 2016 at 18:55 UTC | |
by RonW (Parson) on Oct 17, 2016 at 01:35 UTC | |
by Anonymous Monk on Oct 15, 2016 at 20:09 UTC |