ROR Hivelogic install problems

Hi,   I'm following the instructions from Hivelogic"Building Ruby, Rails, LightTPD, and MySQL on Tiger". I'm trying to install on a MacMini running Tiger(OSX 10.4.6). When I execute the Ruby install by running: ./configure --prefix=/usr/local --enable-pthread --with-readline-dir=/usr/local make sudo make install sudo make install-doc

I get no errors, but I'm not sure if it executes correctly since I'm not 100% sure what this is supposed to do.

The problem occurs when I try to execute the rubygems install in the next section on this line: sudo /usr/local/bin/ruby setup.rb I get sudo: /usr/local/bin/ruby: command not found.

In "/usr/local/bin" there is no directory or executable named "ruby". Should the Ruby make have created this??

Also none of the curl commands in this tutorial work for me. I had to download and untar the ruby files outside of the terminal program. Then use "mv" to move them to the correct directory. I can "curl" the file on the wiki curl website, so I can "curl" from terminal, just not the tutorial files.

any ideas what I'm doing wrong??

thanks,

Jon

I get no errors, but I’m not sure if it executes correctly since I’m

not 100% sure what this is supposed to do.

I’m assuming you’re getting a slew of messages. When things are compiling correctly they’re just information or warnings that can often times be ignored. Somewhere in the messages should be an indication of the problem.

The problem occurs when I try to execute the rubygems install in the

next section on this line:

sudo /usr/local/bin/ruby setup.rb I get

sudo: /usr/local/bin/ruby: command not found.

Not producing a /usr/local directory when it’s invoked in the configure statement is a serious problem. It may indicate you don’t have write permissions in /usr.

In “/usr/local/bin” there is no directory or executable named “ruby”.

Should the Ruby make have created this??

Definitely yes.

Also none of the curl commands in this tutorial work for me. I had to

download and untar the ruby files outside of the terminal program.

Then use “mv” to move them to the correct directory. I can “curl” the

file on the wiki curl website, so I can “curl” from terminal, just not

the tutorial files.

Moving things manually is a source of unaccountable problems later. Better to figure what’s wrong with the permissions before trying to fix anything manually. There could be weird problems later.

Jose

Jose Hales-Garcia

UCLA Department of Statistics

jose@stat.ucla.edu

I wasn’t reading this statement carefully enough the first time. There are known problems unpacking archives using Stuff-it which can cause bizarre problems. To be kosher according to Hivelogic’s instructions you need to get curl working. That’s a big problem right there. What shell are you using? curl is located in /usr/bin. Is it there?

Jose

Jose Hales-Garcia

UCLA Department of Statistics

jose@stat.ucla.edu

Hi,

  I was able to get the "curl" command to work in terminal. I added the ""--disable --epsv" option. Once I did this everything worked correctly.

  When I execute the following: ./configure --prefix=/usr/local --enable-pthread--with-readline-dir=/usr/local make sudo make install sudo make install-doc

  I get no errors, but ruby is not created in /usr/local/bin. I gave everyone r/w priv's for these folders, so I don't believe it is a permissions issue. I searched my entire hard drive with the "find" command in terminal, and ruby is not being created in another directory.

  I see there is something called "DarwinPorts" that is a package installation for ROR. Have you ever used that?? Any thoughts good or bad??

thanks,

Jon

James Duncan Davidson's article, "Sandboxing Rails With MacPorts" (nee darwinports) does a great job walking one through rails development setup on the mac (and explains some advantages of package management vs. install-by-hand). <http://blog.duncandavidson.com/2006/04/sandboxing_rail.html&gt;

cheers, jean-pierre

jeanpierre@gmail.com wrote:

> [...] > > I see there is something called "DarwinPorts" that is a package > installation for ROR. Have you ever used that?? Any thoughts good or > bad??

James Duncan Davidson's article, "Sandboxing Rails With MacPorts" (nee darwinports) does a great job walking one through rails development setup on the mac (and explains some advantages of package management vs. install-by-hand). <http://blog.duncandavidson.com/2006/04/sandboxing_rail.html&gt;

cheers, jean-pierre

Hi,

Thanks for all of your input.

I was able to get Ruby to compile after I installed the latest X-code(v2.4) off of the Apple devolper website. I am using an Intel based Mac Mini. I believe the X-Code version I installed off a DVD was not compatible with the Intel Mac even though I got no error message indicating that.

I also needed to add the following option to the "curl" command "--disable-epsv". Without that option the curl command would not work.

Jon Lesher