help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PHP help


From: Marc Weber
Subject: Re: PHP help
Date: Wed, 23 Jun 2010 11:40:14 +0200
User-agent: Sup/git

Excerpts from Kne's message of Wed Jun 23 02:45:21 +0200 2010:
> 
> I tried system('sh shell.sh'). Since i am running T shark as well, the output
> printed a few problems with respect to t shark. So i removed the octave
> commands from shell.sh and gave like this.
> 
> shell_exec('sh shell.sh');
> system(/usr/local/bin/octave analyse_collected_frames 2>&1);
> system(/usr/local/bin/octave analyse_collected_pkts 2>&1);
> 
> This time, the shell script executed without problems and the octave part
> displayed the error below. (By the way, the '/usr/local/bin/octave' is
> because i installed it there and forgot to configure it to be run by just
> octave. I did not have time to find out how its done)
> 
> 
> /usr/local/bin/octave: /opt/lampp/lib/libgcc_s.so.1: version `GCC_4.0.0' not
> found (required by /usr/local/lib/octave-3.2.4/liboctinterp.so)

The quickest way: 

export > your.environment.

system('. your.environment;  /usr/local/bin/octave analyse_collected_frames 
2>&1);

This way you get the same env which you have in your shell. If that
works try removing definitions from your environment file until it
fails. I'd guess you've set LD_LIBRARY_PATH to make octave find the
libs.

Marc Weber


reply via email to

[Prev in Thread] Current Thread [Next in Thread]