ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Learning the Mac OS X Terminal, Part 4
Subject:   Addendum -- /usr/local/bin
Date:   2002-03-28 10:42:39
From:   chris_stone
It's possible that your system does not yet have the /usr/local/bin directory that streamripper's install script looks for, so you'll need to first create it:


First, go to /usr/local:


[localhost:~] chris% cd /usr/local


Check its contents for bin:


[localhost:/usr/local] chris% ls sbin


If it's not there, make it as root (with sudo):


[localhost:/usr/local] chris% sudo mkdir bin


Check again that it's there:


[localhost:/usr/local] chris% ls
bin sbin


However, if you've already run streamripper's install script (with "make install"), it probably installed streamripper into /usr/local and renamed that streamripper binary *file* to "bin". If so, when you do a long list, you'll see that "bin' is a file (it has a hyphen instead of a "d" at the beginning of its line):


[localhost:/usr/local] chris% ll bin
-rwxr-xr-x 1 root wheel 347892 Mar 28 10:27 bin


If this is the case, you'll need to remove that file first :


[localhost:/usr/local] chris% sudo rm bin


And then follow the step above to make a "bin" directory. You can then run the "make install" command line again without problem.


Also, if you've installed streamripper, but typing its name still doesn't find the application, type "rehash", which will force the shell to rebuild its list of known executables.


Sorry for the confusion!


--Chris




1 to 2 of 2
  1. Chris Stone photo Addendum -- /usr/local/bin
    2002-03-28 15:56:05  Chris Stone | O'Reilly AuthorO'Reilly Blogger [View]

  2. Addendum -- /usr/local/bin
    2002-03-28 13:39:13  network23 [View]

    • Chris Stone photo Addendum -- /usr/local/bin
      2002-03-28 15:53:57  Chris Stone | O'Reilly AuthorO'Reilly Blogger [View]

      • Addendum -- /usr/local/bin
        2002-04-02 07:03:34  network23 [View]

      • Addendum -- still no compile!
        2002-03-31 22:22:38  rberg [View]

1 to 2 of 2