I've almost pulled out all the remaining hair on my bald head. I've been tinkering with Ruby on Rails on Windows 7 and it works great. I use RailsInstaller 2.2.1 and AptanaStudio3 as my IDE on Windows 7 64bits.
However, going through similar process, I installed these two tools on my 64bit Windows 8 and all hell as been let loose for the past 3 days. RoR projects that run flawlessly on the win 7 do not run on Win 8 with Ruby 1.9.3 p392 and Rails 3.2.13.
Anytime I run launch the server with:
$ rails s
←[31mCould not find rake-10.1.0 in any of the sources←[0m
←[33mRun `bundle install` to install missing gems.←[0m
And
$ bundle install
gives:
$ bundle install
Unfortunately, a fatal error has occurred. Please see the Bundler
troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!
c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.4/lib/bundler/v
endor/net/http/persistent/ssl_reuse.rb:29:in initialize': Bad address - connect
(2) (Errno::EFAULT)
from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.4/
lib/bundler/vendor/net/http/persistent/ssl_reuse.rb:29:inopen'
from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.4/
lib/bundler/vendor/net/http/persistent/ssl_reuse.rb:29:in block in connect'
from c:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/timeout.rb:54:intimeou
t'
from c:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/timeout.rb:99:in timeou
t'
from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.4/
lib/bundler/vendor/net/http/persistent/ssl_reuse.rb:29:inconnect'
from c:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/net/http.rb:755:in `do_s
tart'
I've uninstalled and re-installed countless times but no solution. I'm considering installing virtual machine with Win 7 since it works smoothly on Win7. But that means installing another OS.... I'd like to know if others have had success with RoR on Windows 8.
Thanks
I myself tried using RoR on Windows 8 and could not find a solution to the issues I was running into. My suggestion is to keep with Windows 7, wait a little longer until Windows 8's bugs are sorted out.
I'm running rails on Win8 just fine. I checked my rake version, and it is indeed 10.1.0. Try doing gem uninstall rake, and then gem install rake --version 10.1.0. Then try bundler again.
I ran into something similar what I cloned the app I was developing on win8 onto a win 7 machine. The gemfile.lock from win8 was specifying a version of rake that win7 didn't like.
PS: I sympathize with the hair thing. Not much left here either. Hard to "get a grip" some days :-)
Related
I am still quite new to Rails(1).
Yesterday, I installed Ruby on Rails on a RaspberryPi (with a pristine SD card and fresh etched OS) the Debian way:
sudo apt-get install ruby rails
This (seemingly) successfully installed me Rails (version 5.2.2.1) and Ruby (version 2.5.5p157) and I created a new application framework without trouble. However, starting the puma server just results in a long error log.
bundle update
aborts at
installing Nokogiri 1.10.4 (was 1.10.0)
(... can't find headerr files for Ruby'...).
Not surprisingly, the server still responds with just the same error messages.
Any help in getting things up and running is highly appreciated.
Thanks!
Karsten
(1) I am absolutely sure, I am not the first and only with this question. Three weeks ago I had about the same difficulties with the installation procedure at my laptop running plain Debian. I searched for about two days without finding clear guidance (ok, not smart enough ;-). Finally I managed to get things running by manually setting GEMS versions to the pre-installed values. However, this took quite some time and because I am new, I am unaware which implications my trial-and-error settings have. Because I did not log my actions, now I would need to restart the procedure from scratch... There must be a better approach ==> sorry for redundant postings.
Try installing the headers files for ruby:
sudo apt-get install ruby-dev
I made a mistake earlier today where I ran a git clean -f command and it seems to have wiped out rails and rvm. I tried to re-install both, and the installations seemed to work, but when I try to run the rails -v I get a gem load error. This tells me that the installation did not work properly, even though I watched railties get installed a few minutes ago. Does anyone have any advice for this sitation? Or do you have experience troubleshooting an error like this?
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/dependency.rb:296:into_specs': Could not find 'railties' (>= 0) among 19 total gem(s) (Gem::LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/dependency.rb:307:into_spec'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:47:ingem'
from /usr/bin/rails:22:in <main>'
try the simple stuff first, bundle install, restoring from git depending on what your branches were. Finally you made need to just uninstall and reinstall
How can I uninstall Ruby on Rails on Mac OS X?
https://gauravsohoni.wordpress.com/2014/01/01/rvm-implode-and-rvm-install/
I was running PostgreSQL 9.1, installed from Postgres (/Library/PostgreSQL/9.1) - ie not homebrew etc and on Mac OSX Leopard.
I upgraded to Snow Leopard and then immediately to Mountain Lion and had a mass of problems with gems failing to build etc, but got them fixed
Rails server crashed on startup with pg issues & I tried everything I could find but could not fix the prob - fixes included links etc, which may still persist (hence this background info might inform the solution)
I uninstalled postgresql 9.1 and installed Postgres App
Now on rake db:create I get the following:
rake aborted!
dlopen(/Users/mitch/.rvm/gems/ruby-1.9.2-p320#tme-3.2.11-mltest/gems/pg-0.17.0/lib/pg_ext.bundle, 9): Library not loaded: #loader_path/../lib/libpq.5.dylib
Referenced from: /Users/mitch/.rvm/gems/ruby-1.9.2-p320#tme-3.2.11-mltest/gems/pg-0.17.0/lib/pg_ext.bundle
Reason: no suitable image found. Did find:
/usr/local/lib/libpq.5.dylib: mach-o, but wrong architecture - /Users/mitch/.rvm/gems/ruby-1.9.2-p320#tme-3.2.11-mltest/gems/pg-0.17.0/lib/pg_ext.bundle
I'm running rvm (as u can see) and after the OS upgrade created a new gemset and installed Ruby
I've changed my path to reflect the advice of Postgresql App, after the OS upgrade I installed Xcode 5 and the command line tools as advised and I think my database.yaml file is ok
I suspect the problem might be connected with sym-links made earlier in the process, but I'm stuck to find the solution
Sounds like something has gone wrong in your Ruby installation. Try reinstalling Ruby Enterprise Edition via RVM:
rvm reinstall ree
I was experiencing the same issue with a different version of libpq. What I ended up doing is creating a link to the correct file:
sudo ln -s /Applications/Postgres93.app/Contents/MacOS/lib/libpq.5.6.dylib /usr/local/lib/
My previous answer was deleted as it wasn't originally an answer, just a confirmation of a similar issue. Hope this helps!
In the end I think this was tied up with the fact that Mountain Lion ships with Postgresql rather than MySQL as per previous OSX versions.
I couldn't make sense of the Postgres App, so I uninstalled it and also uninstalled the version of Postgresql that shipped with ML and then did a Homebrew install of the latest version of Postgresql (which places it in a different place than if you install it direct from the Postgresql site).
This seemed to straighten everything up
I'm new to Ruby on Rails and to web development in general. Yesterday I successfully installed Git, osx-gcc-installer, RVM and Ruby on my Mac OS X 10.6. To try to get Rails and everything else I need, I downloaded RailsInstaller for OS X 10.6 and apparently made it at least through the unpacking of files, but now I have the RailsInstaller Setup window hanging on my machine for over two hours. It has a message "Completing the RailsInstaller setup wizard"... "Setup has finished installing Railsinstaller on your computer." Clicking on Finish, Back, anything does absolutely nothing; the window just sits there. Clearly something is not working, and I'm not sure what to do. I checked the Rails install in the terminal and got the following message:
$ rails --help
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:827:in report_activate_error': Could not find RubyGem rails (>= 0) (Gem::LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:261:inactivate'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:68:in `gem'
from /usr/bin/rails:18
I'm hesitant to start killing processes or restart my machine. Also wondering if I'm going to have to purge everything I've already installed and start over from scratch, and not sure how I would go about that.
Any thoughts would be appreciated. Thanks.
I had trouble running the installer as well. It was not exactly the same issues you had.
Running the installer from the terminal as root worked much better for me.
The command would look something like this:
sudo ./RailsInstaller-1.0.4-osx-10.7.app/Contents/MacOS/osx-intel --mode text
If that does not work, you can get additional debugging diagnostics with the --debuglevel flag.
Please do not just close
I've recently started learning rails and am having trouble with the rails server command when i run it i get the following error message:
C:/Ruby200/lib/ruby/2.0.0/gems/sqlite3-1.3.7-x86-mingw32/lib/sqlite3.rb:in 'require' cannot load such file -- sqlite3/sqlite3_native (LoadError)
this is followed by 16 from messages (I will add them if asked).
My system is Windows XP, Ruby version 2.0.0p195, Rails Version 4.0.0.
I will gladly provide further info upon request.
All the solutions I've found i have tried and it has not worked.
Solutions I've tried:
1) Knapsack solution
2) ruby setup.rb config -- --with-sqlite-include=c:\sqlite-autoconf-3071700
3) ive tried the sqlite-amalgamation download.
4) uninstalling and reinstalling sqlite3, ruby, rails, rubygems, dev tools, etc.
5) running virtual machine with ubuntu 13.04 (rails server command is working as if i said rails new server)
6) and several other command line runs and various downloads.
Its told me many times that its installed sqlite3 version 1.3.7, but I still get the same result.
Please and thank you for your help in advance!!
P.S. Many of the others are based on windows 7 or higher and older versions of ruby and/or rails.