wxtwxt Posted September 11, 2007 Share Posted September 11, 2007 ireport 2.0.1 cannot run on solariswhen i run "startup.sh"# sh startup.shstartup.sh: 替代错误 or "cannot found the file" need help thanks Link to comment Share on other sites More sharing options...
csbac Posted September 11, 2007 Share Posted September 11, 2007 Are you in the right directory?Runsh iReport.sh in the iReport installation directory,or sh startup.shin the ./bin directory.Sebastian Link to comment Share on other sites More sharing options...
wxtwxt Posted September 11, 2007 Author Share Posted September 11, 2007 yessurefollowing: cd /usr/ireport-2.0.0-src/binsh startup.sh Link to comment Share on other sites More sharing options...
wxtwxt Posted September 12, 2007 Author Share Posted September 12, 2007 need help thanksthanks Link to comment Share on other sites More sharing options...
kburkart Posted September 28, 2007 Share Posted September 28, 2007 I am having the same problem. When I run the startup.sh file I get this response! ./startup.sh: bad substitution I am running the bash shell. Link to comment Share on other sites More sharing options...
kburkart Posted September 28, 2007 Share Posted September 28, 2007 OK my problem was at the top of the startup.sh script. I needed to change the #!/bin/sh to #!/bin/bash and it worked Link to comment Share on other sites More sharing options...
csbac Posted September 28, 2007 Share Posted September 28, 2007 Hi!On Linux, usually, sh is a link to bash.Seems the sh on solaris is a real sh, possibly an older version, and whoever wrote the startup.sh script used bash, not sh syntax ... works on nearly all systems, but not on all, it seems ... Maybe you can file a bug report, that the script needs to be changed either to bash, or the "substitution" needs to be adjusted to sh syntax? I'd guess theCode:EXEDIR=${0%/*} is the problem ... Yours,Sebastian Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now