Hi all,
I use a program (OpenGrads) to run on the command prompt in OPENSUSE.
It worked on Windows very well but I cant run the command on linux.
System commands works without any problem.
But the specific command that is 'grads' doesnt work.

I used system(), exec(), shell_exec() functions and the results all the same.

Any suggestions for this problem?

The problem was solved : )
First I write the full path of the command

# whereis grads
grads: /usr/local/bin/grads

Then I got an error or warning Im not sure : ) following:
opt/lampp/lib/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)

And finally (from here: http://owl.anytimecomm.com/forum/12-installations/4308-antiwork-works-fine-but-not-pdftotext)rename the libgcc_s.so.1 libgcc_s.so.1.bak

Now it works !

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.