sea
January 22, 2015, 2:56pm
1
Hello
So i got my hands on some freebsd iso, installed it in a qcow2 image and installled git and bash.
So far, so good.
Git repositry retireved
install script executed
files got copied
files have exec flag
files are in $PATH / found by which / bash-completion works
But still, they cannot be executed when called in the shell.
-> Command not found <-
Why?
What am i missing please?
Know this is my very first experience with an actual installed bsd system.
Thank you in advance
sea
January 22, 2015, 3:11pm
2
Oook, guess i've figured...
The 'common' shebang of /bin/bash wont work when bash is in /usr/local/bin/...
The error was refering to the shebang, not the command itself, sorry.
/solved
1 Like
drl
January 24, 2015, 11:44am
3
Hi.
I most often use env to find the program:
#!/usr/bin/env bash
or
#!/usr/bin/env perl
or
#!/usr/bin/env awk
etc.
I don't think it has ever failed on any of the systems I use: Solaris, Slackware, Fedora, Debian, {Free,Open,Net}BSD, etc.
See #!/usr/bin/env : perl no such file or directory Post: 302366990 for more details.
Best wishes ... cheers, drl
1 Like
sea
January 27, 2015, 5:47am
4
Thats what i changed its shebang to