Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMike Consonni
3,501 PointsHelp! Can not install Ruby on Rails
I am having difficulties installing Ruby on Rails. After running the installer from rails installer.org i get several error messages.
When using Terminal to verify, I see only the old version of ruby and no rails.
Please help!!!
Errors
"Problem running post-install step. Installation may not complete correctly Error running sudo installer -package /opt/rix/GCC-10.7-v2.pkg -target / :sudo: /private/etc/sudoers is moder 0644, should be 0440 sudo: no valid shudders sources found, quitting"
"Problem running post-install step. Installation may not complete correctly Error running sudo sh-c"cd /Applications ; rm -rf JewelryBox.app ; unzip /opt/rix/JewelryBox_RIX.zip" : sudo: /private/etc/sudoers is mode 0644, should be 0440 sudo: no valid shudders sources found, quitting"
"Problem running post-install step. Installation may not complete correctly Error running sudo sh -'grep -E "/etc/profile.d/ sm.sh|/etc/profile.d/*" </etc/profile>/dev/null || printf"\nsource /etc/profile.d/sm.sh\n">> /etc/profile' :sudo: /private/etc/sudoers is mode 0644, should be 0440 sudo: no valid shudders sources found, quitting"
etc.......
4 Answers
Mike Consonni
3,501 PointsProblem solved!
If anyone else experiences this or similar problems I was able to fix it by:
- Opening Disk Utility
- Choosing my Macintosh HD
- Clicking Repair Disk Permissions
Jason Seifer
Treehouse Guest TeacherGreat work!
Joseph Bramall
12,211 PointsIt still didn't work for me! Anyone know what could be going wrong?
Problem running post-install step. Installation may not complete correctly Error running sudo su JossephBramall -c 'bash -c "PATH=\"$PATH::/opt/sm/pkg/active/bin\"git config--global user.name \"Joseph Bramall\""':bash:/opt/sm/pkg/active/bin/git Bad CPU type in excutable
Aaron Walton
3,557 PointsIt seems that one common error can be resolved by restarting the computer before running the Ruby installer. Regarding "When using Terminal to verify, I see only the old version of ruby and no rails.", after installation you must open a new terminal window to see the appropriate output. I was having the same issue and a new window salved it.
Sorry for reposting some of this info in this answer that I posted in a reply above. I am new to the forum and still learning the format.
Jason Seifer
Treehouse Guest TeacherHey Aaron Walton your computer might not have the correct CPU to run that app. What kind of computer do you have?
Aaron Walton
3,557 PointsTo clarify, I got it working. I just posted my experience to help others that might be having similar issues.
Joseph Bramall
12,211 PointsThanks Aaron. I forgot to say that i found out that it won't work because I'm running a 32 bit machine not a 64 bit one.
Thanks for all the help anyway, much appreciated.
Aaron Walton
3,557 PointsAaron Walton
3,557 PointsRegarding "When using Terminal to verify, I see only the old version of ruby and no rails.", after installation you must open a new terminal window to see the appropriate output. I was having the same issue and a new window salved it.