| OS X - Operating System General OS operation information and support |
| Post Reply | New Thread | Subscribe |
|
|
Thread Tools |
![]() Member Since: Mar 19, 2007
Location: England
Posts: 1
![]() Mac Specs: G4 iMac
|
I'm trying to install software from terminal.
I've just spent half a day installing items from Developer Tools, so now the command "make" is recognised by Terminal, but "compile" still isn't. My first challenge is to install fink; the instructions tell me to unpack, navigate into the folder in Terminal and type "./bootstrap.sh". Terminal tells me there's no such directory, but I can see the file. Is "./" a command? I've seen it before in abortive attempts to use Terminal. Can somebody point me to the top secret location where all the Terminal programs are stored so I can install them (Ha Ha) and use the thing to compile and install programs rather than just rename files and create/delete directories. Does anybody know of a resource that tell you how Unix works instead of giving you lines of instructions to copy which don't work if you're stuck with the default Terminal application? Thanks Clive |
| QUOTE Thanks | |
|
Inactive Staff
Member Since: Dec 24, 2002
Location: Los Angeles, California
Posts: 12,591
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: 2 x 3.0GHz Quad-Core, 6GB OS X 10.6.8 | 15in MacBook Pro 2.2GHz OS X 10.6.8 | 64GB iPad 2 WiFi
|
First bootstrap.sh is a shell script. To run this little program you need to be in the directory/folder where it is located. Using ./bootstrap.sh, you are saying to run this program which is located in the directory/folder where I setting. That is the reason for the ./, which is the locate of the script.
Normally when you compile something you will use something like gcc, cc, CC, and perl to name a few. If you see compile, it should be a name of a script that contain the compiling options. As for how Unix works you can search the net, or get your self a book on Unix. Life isn't about waiting for the storm to pass, It's about learning to dance in the rain! |
| QUOTE Thanks | |
![]() Member Since: Apr 29, 2006
Location: St. Somewhere
Posts: 4,547
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: PowerMac G5 Quad, 2.5 GHz, 4 Core, 120 GB SSD, 500 GB HDD
|
./ is simply a way of identifying the current folder. Have you tried just typing in bootstrap.sh without the leading ./? ...howver, the ./ version should work. Are the permissions right for bootstrap.sh? Is it executable? Perhaps typing "sh <bootstrap.sh" might resolve the issue? In Terminal, type "env", and look for the PATH variable. It will contain all the locations that Terminal looks when looking for programs whose names you have typed in. If you need to add to it, do something like: PATH=$PATH:/new_path_element Finally, I would recommend looking at DarwinPorts vs. Fink. I find it much better. See: http://darwinports.opendarwin.org/ My Macs: PowerMac G5 Quad, 2.5 GHz, 4 Core, Mac Pro, 3.2 GHz 8 Core, Power Macintosh 7500/100 My iStuff: 32 GB iPhone 4, 30 GB iPod Video, 16 GB iPod Touch My OS': Mac OS X Tiger, Mac OS X Snow Leopard, Mac OS X Leopard, Mac OS 8.6, openSUSE 10.3, Win XP I was on the Mac-Forums honor roll for September 2007 |
||||
| QUOTE Thanks | |||||
![]() Member Since: Feb 13, 2005
Location: New Orleans, LA, USA
Posts: 1,186
![]() ![]() ![]() ![]() Mac Specs: 13" Macbook Pro 2.26Ghz Unibody 4G RAM 160G HDD Superdrive
|
IIRC, the Developer Toolkit installs all the gcc stuff and some other utilities that allow you to compile the Darwin ports and other things that you would want to make from the command line, but your default environment won't necessarily point to where it puts all the binaries. I seem to recall having to manually add /opt/local/bin:/opt/local/sbin:/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin to my $PATH in my .bash_profile before I could start compiling things.
I could be wrong, but I'm pretty sure I needed to modify that before I could get on to bash-ing things about. |
| QUOTE Thanks | |
![]() Member Since: Apr 29, 2006
Location: St. Somewhere
Posts: 4,547
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: PowerMac G5 Quad, 2.5 GHz, 4 Core, 120 GB SSD, 500 GB HDD
|
Quote:
Code:
env | grep -i path My Macs: PowerMac G5 Quad, 2.5 GHz, 4 Core, Mac Pro, 3.2 GHz 8 Core, Power Macintosh 7500/100 My iStuff: 32 GB iPhone 4, 30 GB iPod Video, 16 GB iPod Touch My OS': Mac OS X Tiger, Mac OS X Snow Leopard, Mac OS X Leopard, Mac OS 8.6, openSUSE 10.3, Win XP I was on the Mac-Forums honor roll for September 2007 |
|
| QUOTE Thanks | ||
|
Inactive Staff
Member Since: Dec 24, 2002
Location: Los Angeles, California
Posts: 12,591
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: 2 x 3.0GHz Quad-Core, 6GB OS X 10.6.8 | 15in MacBook Pro 2.2GHz OS X 10.6.8 | 64GB iPad 2 WiFi
|
Life isn't about waiting for the storm to pass, It's about learning to dance in the rain! |
| QUOTE Thanks | |
![]() Member Since: Apr 29, 2006
Location: St. Somewhere
Posts: 4,547
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: PowerMac G5 Quad, 2.5 GHz, 4 Core, 120 GB SSD, 500 GB HDD
|
Thanks rman - I knew that! Been using Linux too long now; it is the opposite of the Mac paradigm; I tend to do things the complex way!
My Macs: PowerMac G5 Quad, 2.5 GHz, 4 Core, Mac Pro, 3.2 GHz 8 Core, Power Macintosh 7500/100 My iStuff: 32 GB iPhone 4, 30 GB iPod Video, 16 GB iPod Touch My OS': Mac OS X Tiger, Mac OS X Snow Leopard, Mac OS X Leopard, Mac OS 8.6, openSUSE 10.3, Win XP I was on the Mac-Forums honor roll for September 2007 |
| QUOTE Thanks | |
| Post Reply | New Thread | Subscribe |
| Thread Tools | |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|
|||||||
Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| Terminal Problem | WROC | OS X - Apps and Games | 5 | 01-09-2007 04:01 PM |
| Terminal problems | meskue | OS X - Apps and Games | 1 | 06-20-2006 06:28 PM |
| The mysterious Terminal | Kokopelli | OS X - Operating System | 2 | 03-05-2006 08:23 AM |
| Problems with the Terminal | DaedalusBTJ | OS X - Development and Darwin | 1 | 02-13-2006 08:52 PM |
| Terminal Help | rs2sensen | OS X - Apps and Games | 1 | 04-25-2005 10:52 PM |
All times are GMT -4. The time now is 02:18 AM.
Powered by vBulletin