im quite new to ruby and rails. I have just installed Ruby, DevKit, Rails and a few gems.
I just created my first rails project and everything seemed good until i tried to start the server(rails server) The error message is below. I cannot grab the whole error because there is alot of errors and the command lines starts to remove it.
Update 1, Full Log
Error Log
Cause: "The libmysql.lib included in the MySQL Connector/C 64 bit is not compatible with the mingw64-gcc compiler."
This page details how to fix the problem.
Related
When running
rvm install ruby-4.2.7
I get the following error:
The requested url does not exist(22): 'https://cache.ruby-lang.org/pub/ruby/4.2/ruby-4.2.7.tar.bz2'
It then tries the fallback which also fails. I've run through a couple different SO articles, tried different versions of RVM, and also specified a desired patch level (p95) to no avail.
I think there is something that I don't understand about how that URL is generated. It's my first day at my new job, I'm setting up my environment and this error is killing me!
Thanks!
You can update Ruby but only to version 2.4.0.
Try reading "Installfest". That's the quickest Ruby and Rails installation instruction I know and it includes installing RVM.
I am a total noob to Ruby and Rails, so any help is appreciated about this.
I installed Ruby 2.0.0 using RVM. It got most of the way through, when I got this error message:
Error running 'env GEM_PATH=/Users/victoriamielke/.rvm/gems/ruby-2.0.0-p0:/Users/victoriamielke/.rvm/gems/ruby-2.0.0-p0#global:/Users/victoriamielke/.rvm/gems/ruby-2.0.0-p0:/Users/victoriamielke/.rvm/gems/ruby-2.0.0-p0#global GEM_HOME=/Users/victoriamielke/.rvm/gems/ruby-2.0.0-p0 /Users/victoriamielke/.rvm/rubies/ruby-2.0.0-p0/bin/ruby -d /Users/victoriamielke/.rvm/src/rubygems-2.0.3/setup.rb --verbose',
please read /Users/victoriamielke/.rvm/log/ruby-2.0.0-p0/rubygems.install.log
Installation of rubygems did not complete successfully.
I also opened up rubygems.install.log, and it said near the end:
ERROR: While executing gem ... (NoMethodError)
undefined method `fu_stream_blksize' for #<Gem::Commands::SetupCommand:0x007fcab29f5838>
What caused the failure of Rubygems to install?
Another problem am having is the error message ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2). I tried a Google search on this, which said I needed to find the mysql.sock file. Well, I have never found this file on my computer and could not find out in plain English how to add it or generate it.
Looks like the installation error is a recent known issue. If you're a beginner I recommend using Ruby 1.9.3, since 2.0.0 is brand new and you'll certainly find bugs in both the language implementation and libraries that haven't been tested on 2.0.0 yet.
The second issue is unrelated. It could be that you haven't started MySQL (did you run mysql.server start?), file permissions, MySQL configuration, or any number of other issues. You're not supposed to create /tmp/mysql.sock yourself, it's created automatically by MySQL. Please open a separate question about it.
First a little indication of what I'm running:
Operating System: Windows 8 64-bit
Ruby version: 1.9.3p362
Rails version: 3.2.11
I've created a new rails project called simple_cms under C:\Users\Dean\Documents\Ruby_Projects\ .
I then navigate into the project directory, so my path then is C:\Users\Dean\Documents\Ruby_Projects\simple_cms\
I then run (with my administrator command prompt)
rails server
but I then get a whole lot of errors but the most prominent one being:
The specified module could not be found some\path\mysql2\1.9\mysql2.so
Any ideas?
EDIT: Attached is my full command prompt output...
It looks like your mysql2 gem hasn't been installed correctly.
Check out the answer to this question for info on properly installing the mysql2 gem. That should take care of the rest of your errors.
I stood up a Rack server with Geminabox, running on my machine at http://localhost:9292. Now I was trying to upload the gem to the server (from a different tab on the terminal acting like a client), but when I type:
gem sources -a http://localhost:9292
I get the following error:
Error fetching http://localhost:9292:
bad response Not Found 404 (http://localhost:9292/specs.4.8.gz)
There is a trailing colon and I'm a bit lost, any help on that?
Thanks!
You need to upload at least one gem before Geminabox starts to serve the necessary files.
(I know this is an old question but I came here from google so others might as well)
I have installed RoR in normal way as told on the RoR Guides website. It is installed, then few months ago I used it and it worked fine, now after some months when I create a new app and give this command
rake db:create
It gives the error that it can't write to sqlite.dll file, it gives the path of Ruby installation folder and its bin folder. I have downloaded and copy sqlite.exe and sql.dll in that folder also but same problem.
I thought that may be some thing is corrupted so I have reinstalled ruby and RoR. But nothing happen, same error continues. Please tell me also if it don't simply work on Windows. I am using Rails 3 and Ruby 1.9.2.