Installing new library commands within Mac OS X Terminal

Hello,
I would like to know how can I install new library commands within the Mac OS X Terminal.
Can anyone provide me some instructions on how to do that task?
John P.

Mac OS is Unix - so it's basically up to you to decide where you want to install command line tools.
You will need to understand that the command line tools will use a 'search path' to look for the executable code for the commands issued in the Terminal or in scripts etc.
In Terminal…
echo $PATH
Will output something like… (this is NOT the default search path).
-> /bin:/sbin:/usr/X11/bin:/usr/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/ usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin
Which means the OS will look in each of those places for any command I run starting on the left (the colon is a separator). Bear in mind each user has their own search $PATH, this can be configured in the users profile (the ~/.bash_profile,  ~/.bashrc and many other config files for other environments).
You can see where tools are installed via the 'which' command…
which echo ping
-> /bin/echo
-> /sbin/ping
Those locations are considered 'system' folders. In practice you will probably install into /usr/local/bin for any tools that you compile yourself. Compiled tools have arguments that can allow you to specify where it should be installed when you make the code.
Needless to say this is a complex thing to discuss, if you can be specific about what you hope to install that may help, otherwise we are left to point out vague generalities that may send you down the wrong path. What are you actually aiming to install & does it require compilation etc?
In general I'd avoid adding items to /bin, /sbin, /usr/bin, /usr/sbin , these are considered Apple's locations - software update will overwrite them. Stick with /usr/local as the location for third party tools.
Or you can create your own folder for commands/ scripts in your home folder & then add the path to the $PATH variable.
(Please excuse the lack of formatting - this forum is refusing access to the 'advanced editor' to make the code look cleaner).

Similar Messages

  • Just installed new hard drive in mac book pro 15", when trying to boot OSX from original disk I still get a folder with a question mark in it. How can I reinstall the OS?

    Can't seem to get my mac book to boot from the CD after installing new hard drive.
    I keep holding down "c" while restarting the machine with the disk in but it just keeps ejecting the disk and giving me a folder with a question mark.

    If your on 10.5 with a Intel Mac, I think Apple has jinxed the firmware so you can't boot from the 10.5 disk anymore.
    So far several people, myself included, can't boot from a 10.5 OS X disk on a Intel Mac.
    Your going to have to buy a 10.6.3 Snow Leopard retail disk, it's wayyy better than 10.5 anyway, faster and most stable even better than Lion. Have to buy iLife though as it doesn't come on the 10.6.3 retail disks, only free with grey disks.
    http://store.apple.com/us/product/MC573Z/A
    https://discussions.apple.com/message/16276201#16276201

  • How do update new Library files on Mac?

    Maybe I'm missing something, but what I want to do is update the current Library files to share with another computer to reflect current additions (playlists, songs, etc.) I don't want to "create" a new library and I don't think I want to "back up" the current library - I just want to update it as it is right now. What is the right way to do this? (iTunes 10)

    do you mean you got a new Mac and want it to have the exact same library you have on the old one ?
    if so, connect the two Macs with a firewire cable, boot the source Mac in _*Target Disk Mode*_, and copy the entire iTunes folder (not just the iTunes music folder) from <MacintoshHD>/users/<yourname>/music on the source to <MacintoshHD>/users/<yourname>/music on the target (overwriting the iTunes folder in place there).
    you could also use _*Home Sharing*_ to transfer content between your computers.
    alternatively, you could use 3rd party tools such as TuneRanger, Syncopation or PowerTunes two keep two libraries in sync.
    JGG

  • How do I install new fonts with a Mac?I

    I am using Fireworks 8 on a Mac and can't figure out how to install new fonts.  I've added the new fonts to the Font Book, and they show up  in other applications such as Adobe Illustrator, but not Fireworks.  Does anybody have any suggestions?  Thanks!

    You must restart Fireworks after you add new fonts, as far as I know.
    Once you restart it, you should see all new installed fonts!
    Hope this helps?
    PS Hint: I think a future version of Fireworks will show fonts almost immediately after they're installed... At least, I hope so!

  • Installing new hard drive in Mac Pro - question about compatibility.

    I'm looking to install an extra internal hard drive in my 2009 Mac Pro, but I need to know if there are any compatibility issues with newer hard drives. I am looking at the Western Digital WD1002FAEX Caviar Black:
    http://www.amazon.co.uk/gp/product/B0036Q7MV0/ref=s9_simh_gw_p147_d0_g147_i1?pf_ rd_m=A3P5ROKL5A1OLE&pf_rd_s=center-2&pf_rd_r=1HY9SF4S3JFEA79TK610&pf_rd_t=101&pf _rd_p=467128533&pf_rd_i=468294
    Would anyone be able to tell me if this is likely to be compatible with my 2009 8 core Mac Pro? Or if there is anything I should be looking out for in particular? I know pre-installed hard drives are 3GB/s and the above hard drive is 6GB/s, does this matter?

    Any SATA drive
    About urls:
    http://www.amazon.co.uk/gp/product/B0036Q7MV0/
    is all that is needed.
    For a bit more, WD1502FAEX WD Black 1.5TB
    http://www.wdc.com/en/products/internal/enterprise/

  • Installation problems installing new Canon MG3170 onto MAC Book Pro with OS X 10.7.5.  Tried installing  using set up disk. Didn't work.  Uninstalled files and downloaded drivers from Canon Website. Didn't work. Uninstalled again and plugged printer usb

    Having problems installing Canon MG3170. Anyone have any solutions?  Here is what I have tried:-
    -Installed from provided Canon disk, firstly with wireless connection, then using USB connection.  Printer could not be added because the Macbook returns that the software is not available from Apple for both types of connections.
    -Uninstalled software from the Canon disk, checked for software updates, then downloaded drivers (printer and scanner) from Canon Website.  Again tried to install using wireless connection then USB connecton.  Printer could not be added because Macbook returns that the software is not available from Apple
    -Uninstalled drivers downloaded direct from Canon Website and plugged printer into Macbook using USB, Macbook recognised the printer and searched for the software, again Macbook returns that hte software is not available from Apple.
    Help!

    nrg adjusta,
    Sorry it took me a while to repsond, Ive been pretty busy with school and work. But for my hard drive problem, I did hours and hours of more research and trying countless ways of installing and tweaking things in my laptop and absolutely nothing worked that I could do. It was very irritating because I felt like I was so close to fixing it and I was just missing a step somewhere. Though It still boggles me why the disk utility shows a different capacity for the HD's. One thing I'm going to try next is replacing the hard drive cable that goes from the internal HD to the macbook. I read somewhere that sometimes those can go bad over time, and also if you get a new, modern hard drive, sometimes the old cable (for some odd reason) might not be compatible with the new HD. So i want to test it out for myself to see it that is the actual culprit.
    http://www.ifixit.com/MacBook-Parts/MacBook-Hard-Drive-Cable/IF186-018
    Once I get the cable and install it I'll let you know the results and if it helped at all.
    Have you made any progress on your hard drive at all? If worst comes worst for you, you can probably get a SATA to USB cable and try to reformat it that way (this is the way that worked for me, but the only problem was it wouldn't be recognized when I installed it internally. Thats why i want to try getting the new cable), and if it still wont recognize it after that, you can just leave it outside of your mac, and just boot from that. The only thing that ***** about that is you have this big hard drive handing off the side of your mac when ever you need to use it.
    Heres a link for a SATA to USB. this one is good because is compact and protects the HD from damage and most static electricity.
    http://www.thinkgeek.com/computing/usb-gadgets/e6d9/?srp=3
    Im still continuing my search for the answer and once i find it (if ever!) I'll post it.

  • Installed New Hard Drive in Mac Book

    Please help.
    I installed a new Hard Drive in my Mac Book as my old one is bad. I am trying to install Leopard. I have reached the screen to select a destination and there is nothing I can pick from in the window.
    Can someone help with the next step, please.

    Hi Sumo,
    Have you already formatted your new hard drive using Disk Utility? Be sure to format as Mac OS Extended as you'll be fine. That may be why you're not able to pick a drive to install Leopard.
    After formatting the drive then you should be able to progress to installing Leopard onto the drive. From there just follow the directions.
    Good luck.

  • Installed new Hard drive, but Mac OS X won't install

    Hi, I posted earlier about installing a new hard drive in my G3 iBook, and well, I did that! After the installation, I put in the Mac OS X CD and opened up the disk utility from the CD, and sure enough the new hard drive was there. So I clicked on the hard drive icon, then clicked erase, and selected Mac OS X extended (journaled). After this was complete, I attempted to install the Mac OS, but it told me that it could not install Mac OS X on this drive! please help me.

    Alas, I too have expirienced the same problem, and I have all your answers. Yes, DO use www.ifixit.com, the instalation looks difficult, bot is quite easy. Check eBay for some HDs, I got a brand new 40 gig one for $70. I had a problem installing the OS with the new one, so if it happens to you try this:
    1. Make sure you have the system restore disks.
    ( your restore disk (there are 4 of them,) shoud restore to mac OS 9 and you probably have a seprate X disk(s))
    2. Insert the OS X disk and boot up (manualy insert disk(paper clip))
    3. At the top there should be some buttons like the apple logo, file, etc.
    under one of the menues there is a button either labled Services or disk utility
    4. Select the erase disk tab.
    5. erase your (empty!) HD.
    6. shut down
    7. manualy insert restore disk 1
    8. Boot up holding down the C key, and run system restore
    9. when that is done, boot up as OS 9
    10. Insert the Mac OS X disk
    10. restart whyle holding down the C key
    11. install X.
    hope it works!

  • Installing new firmware on a mac osx

    Hi Nokia!
    When are you rewarding Mac users who stuck it out with you guys and didn't jump on the iphone bandwagon? Up till now, we only have isync and that trashy multi media transfer software from beta labs. How about a complete pc suite and the ability to upgrade firmware? That would be a nice Christmas present for all mac users, huh...what do you say? I personally have had nokia phones from day 1 and I now have an n95-1.
    I would like to upgrade to v20 but I have two issues:
    1.) my product code 0548986 doesn't support the upgrade YET and;
    2.) I'm a mac user.
    So were does that leave me....hey the iphone!
    n95er

    I usually do the update of firmware thru internet using NSU. You don't have to drop at the NSC's just to update your phone. I visit only this centers if I'm going to buy accessories for my phone.
    Cheers!
    29-Nov-200712:36 PM
    n95er wrote:
    hi rj!
    Have you gone to a nokia service center to get your firmware upgrade? I think this is our only option for now. They charge 500 pesos to do this (if your phone is without nokia phil. warranty. I did this for the 12.0.013 upgrade.
    By the way, you don't need to use windows media player (which sucks), just download the new plug-in for quicktime and you can do it from there. make sure you have quicktime pro.
    n95er
    NOKIA N900
    PUT AN EQUALIZER IN N900

  • Illustrator CS5.1 Crashes each time i try to save, started happening after installing new mavericks operating system (MAC OSX)

    Hi,
    I'm having issues with my illustrator software. It keep crashing before i have chance to save anything and I've lost of of my work 3 times now and getting fed up. It seems to be playing up ever since i downloaded the new Mavericks Operating System on my macbook pro. But this is definitely the worst its been. Ive never had to force quit so much in my life.
    I have tried a few things to sort it out, but has anyone else had this issue?
    Thank you
    Holly

    Holly,
    Did you reinstall the CS5 after installing Mavericks?
    If not, you should; otherwise, Illy is likely to get confused, and then she does funny things, or nothing at all.
    The safest way is the full three step way.
    Uninstall, run the Cleaner Tool, and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

  • Installing new dvd drive in Mac Pro 3,1

    I've had just about enough of this old optiarc dvd burner. I've tried to burn 3 verbatim SL dvd-R last night, and I got the message about couldn't calibrate laser power for this device. I have tried to burn at 2x, 4x, 6x, 8x with no success. I used to be able to burn discs sucessfully, but not anymore. I know this is an ATAPI drive aka P-ATA, and drives of this kind aren't exactly easy to find. I was told that there is a S-Ata port or two in my Mac pro, but that it's a real pain in the tush to get at and connect a cable to.. So, any help welcomed
    OS 10.6.8, 6 gigs ram, Nvidia 8800 GT video card, if that helps
    thanks
    John B

    couldn't calibrate laser power for this device.
    That message is code for, "you are using the wrong discs for this drive". There appear to be several series that use different speeds, and they are NOT compatible. I expect you are using discs that are too "modern" for your older burner, such as 8x discs in a 2.5x burner.
    That error message is unbelievably un-helpful and obscure.

  • Unable to install new programs

    I am unable to install new programs to my Mac book. The Mac's personal specifications is as follows:
    Software: Mac 10.5.4
    Startup disc: Macintosh HD
    Memory: 1G 667 MHz DDRZ
    When every I am trying in install or update my programs it gives me the following message and nothing I do can change it:
    Selection a Destination:
    Macintosh HD (111GB (13.8GB free) and !
    Installing this software requires 85.4MG of space
    You cannot install Norton Antivirus on this volume. This software must be installed on a volume containing Mac OS X version 10.4.10 or later.
    HOW CAN I RESOLVE THIS. Even if I go onto the internet to update my software it does not allow me to.
    Your urgent assistance is desperately needed. HELP :o)

    Verify the version of Norton Anti-virus you have is 10.5.4 compatible.
    Make sure your hard drive is less than 85% full (an arbitrary number which appears to create problems for Mac OS X)*:
    http://www.macmaps.com/diskfull.html
    Note running Norton Anti-virus on the Mac is normally something that's only needed to prevent you from becoming Typhoid Mary, more than prevent you from getting a Mac OS X virus, as there are none in the wild. There are some proof of concept trojan horses, but that's about it.
    - * Links to my pages may give me compensation.

  • Created new library, where is the old one??

    I created a new library, using the create a new library command. It worked, opened a brand new empty library. Where is the old library? Did it get deleted totally or is it somewhere in the computer?

    Tried this, got a number of choices, including the name of the new library. But other choices were: Applications, Developer, Library. System, System Folder...
    Have I missed something?
    Thanks.

  • Installing new software - password area grayed out? HELP

    I am attempting to install new software on my mac. I have Network Administrative Rights, and when I click on the lock in the lower corner under system preferences\Accounts I get a grayed out login area and it will not accept passwords...Does anyone have any suggestions?
    Thanks

    Welcome to Apple Support Communities
    When you set up a Mac, it lets you choose which password you want to use, and it is not your Apple ID password.
    First of all, try resetting the user account password with your Apple ID > http://support.apple.com/kb/HT1274
    If it does not work, you need to reset the password through OS X Recovery > http://discussions.apple.com/docs/DOC-4101

  • How can I share my iTune library on both Mac/Windows on my new MacBook Pro?

    I just ordered a new MBP. I have 15GB iTune library on my old Mac.
    I'm planning to install Windows Vista and using BootCamp or fusion to use both Mac and Windows on MBP. I will use only Windows during work hours and will use Mac when I get back home.
    Is it possible to have just an one iTune library to share for both environment? I'd like to update the library from both Mac or Windows of my choice.
    I also posted on Windows section.
    Thank you for your help!
    Message was edited by: Hiro

    iTunes cannot, no.
    See this -> syncotunes.

Maybe you are looking for