<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>vamp: dm: /usr/local/bin: Not a directory</title>
    <link>http://www.dminor.com/blog/articles/2006/01/16/usr-local-bin-not-a-directory</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>variations on a short vamp in d minor</description>
    <item>
      <title>/usr/local/bin: Not a directory</title>
      <description>&lt;p&gt;
Here&amp;#8217;s an &lt;span class="caps"&gt;FYI&lt;/span&gt; for anyone who runs across this.  It&amp;#8217;s really pretty straight forward but had me spooked for a minute.
&lt;/p&gt;&lt;p&gt;
I was installing an app from source.  When I ran &lt;code&gt;sudo make install&lt;/code&gt;, I didn&amp;#8217;t get an error, but I also didn&amp;#8217;t have anything in my /usr/local/bin directory because it wasn&amp;#8217;t a directory at all, but a single file.  
&lt;/p&gt;&lt;p&gt;
This freaked me out at first because I compile a lot of things from source on my main box, but this was on a different box.  I had /usr/local and /usr/local/lib directories intact.  I went to a completely fresh install of Tiger and noticed that /usr/local does not exist out of the box on Tiger.  The Tiger box I was having problems with was not a fresh install, but an upgrade from Panther.  
&lt;/p&gt;&lt;p&gt;
My hypothesis (which turned out to be correct) was that the &lt;code&gt;make&lt;/code&gt; had run a &lt;code&gt;$ cp package_bin /usr/local/bin&lt;/code&gt;, but since there wasn&amp;#8217;t a /usr/local/bin already created, it just copied my binary to a file called bin in /usr/local.  
&lt;/p&gt;&lt;p&gt;
To test this, I did:
&lt;/p&gt;&lt;pre&gt;    $ sudo mv /usr/local/bin /usr/local/bin.old
    $ sudo mkdir /usr/local/bin
    $ sudo make install
&lt;/pre&gt;&lt;p&gt;
Then I compared the file sizes of /usr/local/bin.old and /usr/local/bin/package_bin and found them to be identical in size.  That led me to conclude that my hypothesis was correct and now everything works nicely.  
&lt;/p&gt;&lt;p&gt;
Hopefully this will help someone in their attempt to install apps from source who are having trouble with &amp;#8221;/usr/local/bin: Not a directory&amp;#8221; issues.
&lt;/p&gt;</description>
      <pubDate>Mon, 16 Jan 2006 11:44:34 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:45673aa2-2929-4c3f-bb5f-e67b31d258a4</guid>
      <author>Dave Minor</author>
      <link>http://www.dminor.com/blog/articles/2006/01/16/usr-local-bin-not-a-directory</link>
      <category>Mac OS X</category>
    </item>
  </channel>
</rss>
