Skip to main content
1 of 7
caw
  • 31
  • 9

Linux program running on Ubuntu machine but not on Unix webserver

I've downloaded the command-line program "Whitaker's Words" which was available for Linux as well as Windows etc.

There is a main program named words. I tried to execute it on my Ubuntu (11.10) machine on command line and it worked:

./words

When I tested it on my Linux webserver (Linux 2.6.37-he-xeon-64gb+1 i686), it worked as well.

Then I decided to apply some changes to the source code and to recompile it. For that, I used the following commands (the latter four are supporting programs):

gnatmake -O3 words -bargs -static
gnatmake makedict -bargs -static
gnatmake makestem -bargs -static
gnatmake makeefil -bargs -static
gnatmake makeinfl -bargs -static

The resulting program worked properly on my Ubuntu machine again, as I could see the correct output in the terminal.

But when I tried to execute it on my webserver using PHP's shell_exec() or passthru(), there was simply no output! According to ldd, the program is statically linked so it should really work, shouldn't it?

I've been testing and debugging for weeks now and I can't find any reason why this is so. Can you help me?

You can get the program here: download link at filedropper.com

(I guess this is no programming question, as my problem is just: How to get that program running on my webserver?)

caw
  • 31
  • 9