Doesn't recognize XCode on Lion #24

Closed
michalkopanski opened this Issue Mar 29, 2012 · 20 comments

Comments

Projects
None yet
2 participants

Since XCode installs into Applications on Lion, railsready doesn't recognize it and stops the install. Any suggestions?

Owner

joshfng commented Mar 29, 2012

Yeah the script is currently checking for a plist that has moved in the latest version of XCode. I'm working on a better way to test that XCode is installed on the system.

Curious to see the solution. Seems that Ruby doesn't play well with Lion overall since it compiles with LLVM by default instead of GCC (bundled with XCode).

@joshfng joshfng closed this in d1ab83f Mar 29, 2012

Owner

joshfng commented Mar 29, 2012

Give it a shot now.

That did it, but I've already had gcc installed via https://github.com/kennethreitz/osx-gcc-installer

Owner

joshfng commented Mar 29, 2012

That's fine. Building ruby doesn't require xcode, just gcc. I was checking for XCode originally because 99% of the time that's how gcc was installed. Glad it's working now.

Ah, not so fast :(

=> Setting up RVM to load with new shells...
railsready.sh: line 135: /Users/michalkopanski/.bash_profile: Permission denied

Owner

joshfng commented Mar 29, 2012

Can you give me the log output located in railsready/install.log

Owner

joshfng commented Mar 29, 2012

Ah, I know what it is. One sec I'll have another fix pushed.

Amazing :) I've been trying to set this up on Lion for the past 48 hours. What makes it worse is that I'm a RVM, Git, Ruby noob.

Owner

joshfng commented Mar 29, 2012

Alright, should be good now. I'm testing for the file before trying to insert the rvm function. Delete the railsready directory and railsready.sh and try again.

The osx flavor needed some tweaking so I'm glad you're able to be my tester :)

Hey, whatever ends this nightmare. I'll be your tester, as long as you help me set this up! :)

Owner

joshfng commented Mar 29, 2012

Hmm sounds like you may have some file permission issues then. Your user should be able to write to it's own .bash_profile file.

Owner

joshfng commented Mar 29, 2012

Do a "ls -asl ~/.bash_profile" and send me the output please.

Too late, I removed it and ran it again. I couldn't even edit .bash_profile, so it was deff a permissions issue on my end.

Owner

joshfng commented Mar 29, 2012

Gotcha

It's past loading the RVM. So far so good. Completed! Thanks so much man. Be on the lookout for those .bash_profile issues. Great script for a beginner like me!

Also, you might want to let Lion users know that they'll need gcc and installing XCode won't help.

Thanks again!

Owner

joshfng commented Mar 29, 2012

Should be good now. The XCode test failing was my fault, the file permission issue was yours :) Thanks for helping me get some much needed fixes in.

No, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment