Configure Readline with wrong directory. Oops.
July 23, 2007 8:18 PM
Subscribe
Configured Readline with the prefix 'ur/local' 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?
A history snippet so you can see exactly what I've done:
313 cd /usr/local
314 cd src
315 ls
316 cd readline-5.1
317 clear
318 ls
319 clear
320 ./configure --prefix=/ur/local
321 make
322 sudo make install
323 cd ..
324 ls
325 clear
326 curl -O ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6.tar.gz
327 tar xzvf ruby-1.8.6.tar.gz
328 cd ruby-1.8.6
329 ./configure --prefix=/usr/local --enable-pthread --with-readline-dir=/usr/local --enable-shared
330 make
331 sudo make install
332 sudo make install-doc
Following
Hivelogic's instructions, 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.
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.
I'm unfamiliar with the intricacies of configure, make etc., but would I be correct in assuming that I can't just take out Readline and reinstall due my invoking it when installing Ruby?
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)?
posted by djgh to computers & internet (5 comments total)
posted by bitdamaged at 8:23 PM on July 23, 2007