<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Configure Readline with wrong directory. Oops.</title>
	<link>http://ask.metafilter.com/67666/Configure-Readline-with-wrong-directory-Oops/</link>
	<description>Comments on Ask MetaFilter post Configure Readline with wrong directory. Oops.</description>
	<pubDate>Mon, 23 Jul 2007 20:23:03 -0800</pubDate>
	<lastBuildDate>Mon, 23 Jul 2007 20:23:03 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Configure Readline with wrong directory. Oops.</title>
		<link>http://ask.metafilter.com/67666/Configure-Readline-with-wrong-directory-Oops</link>	
		<description>Configured Readline with the prefix &apos;ur/local&apos; on OSX. Then installed Ruby in /usr/local, but with Readline. Would like to put everything in the proper place without damaging anything, so what do I do now? &lt;br /&gt;&lt;br /&gt; A history snippet so you can see exactly what I&apos;ve done:&lt;br&gt;
&lt;code&gt;&lt;br&gt;
  313  cd /usr/local&lt;br&gt;
  314  cd src&lt;br&gt;
  315  ls&lt;br&gt;
  316  cd readline-5.1&lt;br&gt;
  317  clear&lt;br&gt;
  318  ls&lt;br&gt;
  319  clear&lt;br&gt;
  &lt;strong&gt;&lt;em&gt;320  ./configure --prefix=/ur/local&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
  321  make&lt;br&gt;
  322  sudo make install&lt;br&gt;
  323  cd ..&lt;br&gt;
  324  ls&lt;br&gt;
  325  clear&lt;br&gt;
  326  curl -O ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6.tar.gz&lt;br&gt;
  327  tar xzvf ruby-1.8.6.tar.gz&lt;br&gt;
  328  cd ruby-1.8.6&lt;br&gt;
  329  ./configure --prefix=/usr/local --enable-pthread --with-readline-dir=/usr/local --enable-shared&lt;br&gt;
  330  make&lt;br&gt;
  331  sudo make install&lt;br&gt;
  332  sudo make install-doc&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
Following &lt;a href=&quot;http://hivelogic.com/narrative/articles/ruby-rails-mongrel-mysql-osx&quot; title=&quot;Hivelogic - Build Ruby on Rails on OSX&quot;&gt;Hivelogic&apos;s instructions&lt;/a&gt;, I did the above, failing to notice my typo. So now I have a /ur/local directory with what appears to be Readline inside, whilst Ruby resides in /usr/local.&lt;br&gt;
&lt;br&gt;
I should mention that everything seems to have worked (Ruby works fine), so this is more to keep everything tidy and in the proper place.&lt;br&gt;
&lt;br&gt;
I&apos;m unfamiliar with the intricacies of configure, make etc., but would I be correct in assuming that I can&apos;t just take out Readline and reinstall due my invoking it when installing Ruby?&lt;br&gt;
&lt;br&gt;
What should I do now to put Readline in /usr/local? Or should I just uninstall/unmake everything and start again (and how should I go about that - specific commands would be extremely helpful, due to my inexperience in this area)?</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2007:site.67666</guid>
		<pubDate>Mon, 23 Jul 2007 20:18:08 -0800</pubDate>
		<dc:creator>djgh</dc:creator>
		
			<category>readline</category>
		
			<category>osx</category>
		
			<category>usr-local</category>
		
			<category>ur-local</category>
		
			<category>unix</category>
		
			<category>linux</category>
		
			<category>directory</category>
		
			<category>typo</category>
		
			<category>ruby</category>
		
			<category>configure</category>
		
			<category>make</category>
		
			<category>install</category>
		
	</item> <item>
		<title>By: bitdamaged</title>
		<link>http://ask.metafilter.com/67666/Configure-Readline-with-wrong-directory-Oops#1013522</link>	
		<description>Just move readline from /ur/local to /usr/local</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.67666-1013522</guid>
		<pubDate>Mon, 23 Jul 2007 20:23:03 -0800</pubDate>
		<dc:creator>bitdamaged</dc:creator>
	</item><item>
		<title>By: Netzapper</title>
		<link>http://ask.metafilter.com/67666/Configure-Readline-with-wrong-directory-Oops#1013543</link>	
		<description>I&apos;m not quite sure what the process is on OSX, but over in ubuntu/gnu+linux(/politically-correct) land, I&apos;d do the following as the super user:&lt;br&gt;
&lt;br&gt;
&lt;code&gt;&lt;br&gt;
mv /ur/local/lib/libreadline* /usr/local/lib&lt;br&gt;
ldconfig&lt;br&gt;
&lt;s&gt;rm -rf /ur&lt;/s&gt;&lt;br&gt;
rm -ri /ur&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
Be very careful on that last line, be careful you don&apos;t make a mistake in the other way and blow away all of &apos;usr&apos; instead of &apos;ur&apos;.  Triple check it.  In fact, I&apos;ve actually gone ahead and changed the &apos;f&apos; argument to an &apos;i&apos; argument, just so that you will have to check it.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.67666-1013543</guid>
		<pubDate>Mon, 23 Jul 2007 20:44:13 -0800</pubDate>
		<dc:creator>Netzapper</dc:creator>
	</item><item>
		<title>By: djgh</title>
		<link>http://ask.metafilter.com/67666/Configure-Readline-with-wrong-directory-Oops#1013547</link>	
		<description>So there are no dependencies or anything that will be screwed up by my justing moving it?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.67666-1013547</guid>
		<pubDate>Mon, 23 Jul 2007 20:48:39 -0800</pubDate>
		<dc:creator>djgh</dc:creator>
	</item><item>
		<title>By: kcm</title>
		<link>http://ask.metafilter.com/67666/Configure-Readline-with-wrong-directory-Oops#1013566</link>	
		<description>FWIW, you already have /usr/lib/libreadline.dylib most likely.  You can see where the Ruby binary is linked to with otool:&lt;br&gt;
&lt;br&gt;
% otool -L /path/to/ruby&lt;br&gt;
&lt;br&gt;
If it&apos;s linked to another libreadline, you probably don&apos;t even need yours.  What I would do, in order of preference, is to use &lt;a href=&quot;http://www.finkproject.org/&quot;&gt;fink&lt;/a&gt; for all of this.  Failing that for whatever reason, I&apos;d rebuild everything with the correct prefixes.  You can remove /ur/local entirely, then anything else you install will either overwrite the old data or install the proper data.  It doesn&apos;t take too long to do all that, given that you&apos;ve already done it, so you may as well avoid any potential runpath problems in the future.&lt;br&gt;
&lt;br&gt;
But really, &apos;fink install ruby&apos; is much cleaner. :)</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.67666-1013566</guid>
		<pubDate>Mon, 23 Jul 2007 21:16:09 -0800</pubDate>
		<dc:creator>kcm</dc:creator>
	</item><item>
		<title>By: hattifattener</title>
		<link>http://ask.metafilter.com/67666/Configure-Readline-with-wrong-directory-Oops#1013615</link>	
		<description>yeah, there are dependencies (which you can view with otool, like kcm says) &#8212; each executable (and shared library) contains the paths to other shared libraries it depends on. There isn&apos;t any particular equivalent to Linux&apos;s ldconfig. There are workarounds you could do, but really you should just delete and reinstall readline, and re-configure and -make ruby.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.67666-1013615</guid>
		<pubDate>Mon, 23 Jul 2007 22:42:38 -0800</pubDate>
		<dc:creator>hattifattener</dc:creator>
	</item>
	</channel>
</rss>
