Women in Technology

Hear us Roar

  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!


Full Threads Oldest First

Showing messages 1 through 5 of 5.

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

    These steps have now been added to the article. (or at least a much simpler version of them :-)

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

    Still not solved. I really hate knowing so little about this stuff that I can't even effectively troubleshoot simple stuff!

    Re the other message: which cc returns /usr/bin/cc

    I do have a bin directory. When I enter ls sbin (why sbin and not bin?) it says I don't have sbin.

    ls returns...
    bin include lib samba share

    ls sbin returns...No such file or directory.

    ll returns this...
    drwxr-xr-x 7 root wheel 194 Sep 26 2001 .
    drwxr-xr-x 10 root wheel 296 Sep 2 2001 ..
    drwxr-xr-x 30 root wheel 976 Jan 29 10:43 bin
    drwxr-xr-x 3 root wheel 264 Sep 26 2001 include
    drwxr-xr-x 4 root wheel 264 Sep 26 2001 lib
    drwxr-xr-x 9 root wheel 264 Apr 20 2001 samba
    drwxr-xr-x 3 root wheel 264 Apr 1 2001 share

    but ll bin returns this (truncated for length)

    total 972
    drwxr-xr-x 30 root wheel 976 Jan 29 10:43 .
    drwxr-xr-x 7 root wheel 194 Sep 26 2001 ..
    lrwxr-xr-x 1 root wheel 33 Jan 29 10:43 addtosmbpass -> /usr/local/samba/bin/addtosmbpass
    lrwxr-xr-x 1 root wheel 38 Jan 29 10:43 convert_smbpasswd -> /usr/local/samba/bin/convert_s
    -rwxr-xr-x 1 rmartin staff 207208 Mar 9 2001 df
    -rwxr-xr-x 1 rmartin staff 174612 Mar 9 2001 dircolors
    -rwxr-xr-x 1 rmartin staff 204092 Mar 9 2001 du
    -rwxr-xr-x 1 rmartin staff 303720 Mar 9 2001 ls
    lrwxr-xr-x 1 root wheel 36 Jan 29 10:43 make_printerdef -> /usr/local/samba/bin/make_printe
    lrwxr-xr-x 1 root wheel 37 Jan 29 10:43 make_smbcodepage -> /usr/local/samba/bin/make_smbco
    lrwxr-xr-x 1 root wheel 36 Jan 29 10:43 make_unicodemap -> /usr/local/samba/bin/make_unicod
    lrwxr-xr-x 1 root wheel 25 Jan 29 10:43 nmbd -> /usr/local/samba/bin/nmbd
    lrwxr-xr-x 1 root wheel 30 Jan 29 10:43 nmblookup -> /usr/local/samba/bin/nmblookup
    -rwxr-xr-x 1 root wheel 1591 Sep 26 2001 pear
    -rwxr-xr-x 1 root wheel 474 Sep 26 2001 php-config
    -rwxr-xr-x 1 root wheel 593 Sep 26 2001 phpextdist

    Why such an apparently different list of files.

    Anyway, it appears that I have bin and it is a directory. As you can probably tell, I installed Samba at one point, if that makes a difference.
    • Chris Stone photo Addendum -- /usr/local/bin
      2002-03-28 15:53:57  Chris Stone | O'Reilly AuthorO'Reilly Blogger [View]

      Actually , this addendum was not meant to address your compile issue, so if you have a /usr/local/bin directory, you're all set as far as that's concerned.

      Have you tried re-installing the most recent Dev Tools?

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

        Have you tried re-installing the most recent Dev Tools?

        All I've installed is the Dev Tools that came on the CD that came with my G4.
      • Addendum -- still no compile!
        2002-03-31 22:22:38  rberg [View]

        I am also still having problems.

        (1) When I try ./configure from the streamripper directory I get: loading site script /usr/local/etc/config.site
        loading cache ./config.cache
        checking for gcc... /usr/bin/gcc --traditional-cpp
        checking whether the C compiler (/usr/bin/gcc --traditional-cpp ) works... no
        configure: error: installation or configuration problem: C compiler cannot create executables.

        (2) /usr/local/bin exists as a directory (with many entires) with is owned by root and group wheel.

        (3) I have reinstalled developer tools from the CD ver 10.1 September 2001. My system version is 10.1.3

        What do I try next?

        What exactly does the error message mean?