Unix/Linux Go Back    


BSD BSD, sometimes called Berkeley Unix, is a Unix operating system developed by the Computer Systems Research Group of the UC Berkeley.

An installation script on freeBSD

BSD


Tags
command not found, freebsd, script, solved

Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 01-22-2015   -   Original Discussion by sea
sea sea is offline
Registered User
 
Join Date: Sep 2013
Last Activity: 14 October 2016, 2:49 PM EDT
Location: Swissh
Posts: 1,285
Thanks: 256
Thanked 226 Times in 209 Posts
An installation script on freeBSD

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.
  1. Git repositry retireved
  2. install script executed
  3. files got copied
  4. files have exec flag
  5. files are in $PATH / found by which / bash-completion works

But still, they cannot be executed when called in the shell.
-> Command not found <- Linux

Why?
What am i missing please?

Know this is my very first experience with an actual installed bsd system.

Thank you in advance
Attached Thumbnails
An installation script on freeBSD-freebsd-exec-flag-jpg  
Sponsored Links
    #2  
Old Unix and Linux 01-22-2015   -   Original Discussion by sea
sea sea is offline
Registered User
 
Join Date: Sep 2013
Last Activity: 14 October 2016, 2:49 PM EDT
Location: Swissh
Posts: 1,285
Thanks: 256
Thanked 226 Times in 209 Posts
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
The Following User Says Thank You to sea For This Useful Post:
Corona688 (01-22-2015)
Sponsored Links
    #3  
Old Unix and Linux 01-24-2015   -   Original Discussion by sea
drl's Unix or Linux Image
drl drl is offline Forum Advisor  
Registered Voter
 
Join Date: Apr 2007
Last Activity: 18 November 2017, 11:52 AM EST
Location: Saint Paul, MN USA / BSD, CentOS, Debian, OS X, Solaris
Posts: 2,206
Thanks: 241
Thanked 413 Times in 357 Posts
Hi.

I most often use env to find the program:

Code:
#!/usr/bin/env bash

or

Code:
#!/usr/bin/env perl

or

Code:
#!/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 https://www.unix.com/302366990-post7.html for more details.

Best wishes ... cheers, drl
The Following User Says Thank You to drl For This Useful Post:
sea (01-27-2015)
    #4  
Old Unix and Linux 01-27-2015   -   Original Discussion by sea
sea sea is offline
Registered User
 
Join Date: Sep 2013
Last Activity: 14 October 2016, 2:49 PM EDT
Location: Swissh
Posts: 1,285
Thanks: 256
Thanked 226 Times in 209 Posts
Thats what i changed its shebang to Linux
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
FreeBSD Installation problems Techmonkey BSD 2 04-15-2008 12:35 PM
freeBSD installation AkinOkin Linux 2 09-14-2006 01:30 PM
FreeBSD / KDE installation woes... ForestryJim BSD 1 09-27-2005 04:22 PM
snort installation on freebsd issues xyyz UNIX for Advanced & Expert Users 13 02-09-2003 11:11 PM
how do u remove a messed up freebsd boot installation? coffeecoolers UNIX for Dummies Questions & Answers 1 08-05-2001 11:48 AM



All times are GMT -4. The time now is 01:40 PM.