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 trial

Ruby

Getting Started

I have used Railsinstaller.org to get the latest version and install it onto a windows 8 laptop. Checked version with ruby -v = ruby 1.9.3p392 <2013-02-226-mingw32] and also done rails -- help and this worked to. I have created a directory and ensured i have writing permissions which i do. Now when i try to do "rails new treebook" it starts the bundle and at the end i get the following error:-

Errno::EACCES: Permission denied - C:/RailsInstaller/Ruby1.9.3/bin/rake. An error occurred while installing rake (10.1.0), and Bundler cannot con Make sure that gem install rake -v '10.1.0' succeeds before bundling. So i then do the "gem install rake -v '10.1.0'" and the results follow:-

ERROR: While executing gem ... (Errno::EACCES) Permission denied - C:/RailsInstaller/Ruby1.9.3/bin/rake.bat I have been through the forum here and seen some of the other questions and nothing has solved this. I have also been on the treehouse forum to no avail.

Any advice would be greatly received, also further information available upon request.

Thanks in advance.

EDIT - Variables.text results

ALLUSERSPROFILE=C:\ProgramData APPDATA=C:\Users\Adam\AppData\Roaming asl.log=Destination=file CLASSPATH=.;C:\Program Files (x86)\Java\jre7\lib\ext\QTJava.zip CommonProgramFiles=C:\Program Files\Common Files CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files CommonProgramW6432=C:\Program Files\Common Files COMPUTERNAME=SACKI ComSpec=C:\windows\system32\cmd.exe EMAIL=C:\Users\Adam\AppData\Roaming\The Bat! FP_NO_HOST_CHECK=NO HOME=C:\Users\Adam HOMEDRIVE=C: HOMEPATH=\Users\Adam LOCALAPPDATA=C:\Users\Adam\AppData\Local LOGONSERVER=\MicrosoftAccount NUMBER_OF_PROCESSORS=4 OS=Windows_NT Path=C:\RailsInstaller\Git\cmd;C:\RailsInstaller\Ruby1.9.3\bin;C:\RailsInstaller\Ruby1.9.3\lib\ruby\gems\1.9.1\bin;C:\RailsInstaller\DevKit\bin;C:\Program Files (x86)\EasyPHP-DevServer-13.1VC11\binaries\php\php_runningversion;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files (x86)\Windows Live\Shared;C:\windows\SysWOW64;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\RailsInstaller\Git\cmd;C:\RailsInstaller\Ruby1.9.3\bin PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC PROCESSOR_ARCHITECTURE=AMD64 PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 58 Stepping 9, GenuineIntel PROCESSOR_LEVEL=6 PROCESSOR_REVISION=3a09 ProgramData=C:\ProgramData ProgramFiles=C:\Program Files ProgramFiles(x86)=C:\Program Files (x86) ProgramW6432=C:\Program Files PROMPT=$P$G PSModulePath=C:\windows\system32\WindowsPowerShell\v1.0\Modules\ PUBLIC=C:\Users\Public QTJAVA=C:\Program Files (x86)\Java\jre7\lib\ext\QTJava.zip RailsInstallerPath=C:\RailsInstaller SystemDrive=C: SystemRoot=C:\windows TEMP=C:\Users\Adam\AppData\Local\Temp TMP=C:\Users\Adam\AppData\Local\Temp USERDOMAIN=SACKI USERDOMAIN_ROAMINGPROFILE=SACKI USERNAME=Adam USERPROFILE=C:\Users\Adam VS110COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\ windir=C:\windows

1 Answer

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

Hey Adam Sackfield try installing the bundler gem and give it another go:

gem install bundler

That may fix your problem. If not, please drop a line with any error messages you get.