My installation of Maple needed export LD_ASSUME_KERNEL=2.4.1 to be called as well.
I just editied the script that starts it to include that line so I guess your fix could just be make a script in your ~/bin directory lets call it foo.sh
then chmod +x foo.sh
Then in foo.sh something like this could work:
Code:
#!/bin/sh
export LD_ASSUME_KERNEL=2.4.1
#then your program of interest here say
/usr/local/foo/bin/bar