Displaying 20 results from an estimated 9000 matches similar to: "need help rubyonrails/mysql problem"
2006 Feb 26
17
please help: having problem with the scaffold commad, mysql.
i just recently purchase agile web dev book about ruby on rails and
going through the whole project. well i am now stuck on creating the
scaffold. I have been messing with settings for awhile now. here is the
error:
koloa@ubuntu:/var/www/depot$ ruby script/generate scaffold Product Admin
exists app/controllers/
exists app/helpers/
exists app/views/admin
exists test/functional/
dependency
2006 Feb 25
20
Agile Rails book code fails page 32
Starting Agile Web Development with Rails, page 32, everything has worked
well so far but on (book not pdf) page 32 I don''t get the "Template Is
Missing" error. I get
Routing Error
Cannot load config/routes.rb:
No such file to load -- ./demo/script/../config/../config/routes.rb
There is a file at e:\ruby\ror\work\demo\config\routes.rb
It''s all greek to me and
2009 Aug 18
7
** Removing all instances of mysql on mac osx **
I am trying to switch from sqllite3 to mysql on Ruby on Rails.
Whenever I try to install the mysql gem, i get an error:
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
I cd''d into my usr/local/bin directory and saw i have several
2010 Feb 27
3
Oniguruma and Ultraviolet on Windows 7
Hi I have been tying to install the followings gems in order to add
code syntax highlighting to my application:
-Oniguruma
-Ultraviolet
-Harsh
Unfortunately I have been running into the the following errors when
running "gem install oniguruma ultraviolet"
Building native extensions. This could take a while...
ERROR: Error installing oniguruma:
ERROR: Failed to build gem
2007 Aug 28
5
ERROR: While executing gem ... (Gem::Installer::ExtensionBu
Hi all,
Sorry if this is answered somewhere -- I am new to ruby and to linux,
and can''t figure it out:
When I try to install ferret (see below), I get ERROR: While executing
gem ... (Gem::Installer::ExtensionBuildError). Same thing happens for
any version I pick from th list.
I am using:
gcc (GCC) 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
ruby 1.8.5 (2006-08-25) [i486-linux]
gem 0.9.4
No idea
2007 Apr 30
5
ERROR: Failed to build gem native extension.
Hi all,
I''d really appreciate some help with this...
As you see below, I tried to install mongrel after updating my gems, but I
get the error shown:
sudo gem install mongrel
Select which gem to install for your platform (i486-linux)
1. mongrel 1.0.1 (ruby)
2. mongrel 1.0.1 (mswin32)
3. mongrel 1.0 (mswin32)
4. mongrel 1.0 (ruby)
5. Skip this gem
6. Cancel installation
> 1
2006 Aug 02
1
how to change rails mysql socket PATH from /var/run to /var/lib?
i have an app im installing that tries look for mysqld.sock in
/var/run/mysqld/mysqld.sock and mysql puts it at /var/lib/mysql/mysql.sock.
if i point mysql at /var/run the app works i.e mysqld
-socket=/var/run/mysqld/mysqld.sock; if i don''t i get an error that goes "
Showing app/views/articles/index.rhtml where line #35 raised:
No such file or directory -
2006 Apr 27
5
mysql lost connection
Hi,
I''m lost and my mysql connection as well... I got this
error in my production.log:
ActiveRecord::StatementInvalid (Mysql::Error: Lost connection to MySQL
server during query: SET NAMES ''utf8''):
Config:
Debian Sarge (last updated), Rails 1.1.2, Webrick,
mysqld Ver 4.1.11-Debian_4sarge2 for pc-linux-gnu on i386
apache2 with mod_rewrite and webrick as proxy on 8080.
2006 Jul 23
18
help with "rake db:migrate" error please?
Hi,
Just trying to get my first database based rails app up on
dreamhost.com. The app was working prior to putting in mysql DB usage
but I''m just stuck on getting the app working with mysql. I''ve already
created the database and can connect to it manually.
Below is the error I get after running the rake migrate. It worked OK
on my home PC environment. I did change the
2006 Jul 07
2
gem install mysql ***extconf.rb failed***
I''ve installed rails (and it works) and now I want to be able to connect
to a mysql database.
The database.yml file tells me to install the mysql drivers by typing:
gem install mysql
This is the error I receive:
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration
2006 Mar 30
2
database.yml and Dreamhost
I am unable to connect to my databases.
Here is the error I am getting:
MysqlError (Can''t connect to local MySQL server through socket
''/var/run/mysqld/mysqld.sock'' (2)):
Here is my database.yml:
# MySQL (default setup). Versions 4.1 and 5.0 are recommended.
#
# Get the fast C bindings:
# gem install mysql
# (on OS X: gem install mysql --
2009 Mar 05
2
Can't connect to local MySQL server through socket...
I just did an unwanted mysql upgrade and am now unable to start the
mysql service.
After doing some searching the common solution is to just create a
symlink
ln -s /var/run/mysqld/mysqld.sock /tmp/mysql.sock
The issue for me is I don''t have the file I am trying to symlink to
(/var/run/mysqld/mysqld.sock)
If I try to start mysql manually (mysql start) I get the error:
# mysql start
2013 May 15
1
staging deploy connected to production database
I''m not sure why but I have both a staging and production deploy using
the ''capistrano/ext/multistage'' gem. I set staging to the default:
set :stages, ["staging", "production"]
set :default_stage, "staging"
It deploys correctly to the right path:
#deploy/staging.rb
set :deploy_to, "/home/myuser/public_html/mysite/"
But it
2010 Oct 23
4
Could not find 'sqlite3-ruby' error in Ubuntu
Hi all, please help me:
First time I totally had to delete all ruby and Rails because of this
problem. How to solve it well?
The message is:
*Could not find gem ''sqlite3-ruby (>= 0, runtime)'' in any of the gem
sources.*
*Try running `bundle install`*
I have *Ubuntu* Linux.
ruby -v = *1.9.2p0*
gem -v = *1.3.7*
rails -v = error message again, 2 hours ago it was "rails
2010 Mar 11
14
trying to install postgres gem on fedora 12 ..
I get these errors :
gem install pg -- --with-pgsql-include-dir=''/usr/include/pgsql'' --
with-pgsql-lib-dir=''/usr/lib/pgsql''
Building native extensions. This could take a while...
ERROR: Error installing pg:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb --with-pgsql-include-dir=/usr/include/pgsql --
with-pgsql-lib-dir=/usr/lib/pgsql
2006 Feb 08
3
Newbie and MySQL
Please forgive me if this has been answered in another post. I''ve looked
around but couldn''t find a solution.
I bought the book "Agile Web Development with Rails" and think I''m going
to really like it. I went through the first chapter with no problems.
However, as I begin developing the database on page 57, I get a
consitent error:
Before updating scaffolding
2009 Dec 24
12
no such file to load -- ferret
Hi there,
I''m just trying to deploy my app to my vhost, and i''m getting an error
on the phusion passenger page:
no such file to load -- ferret
now everything worked fine in development.
DO i need to reinstall the plugin and gem again? if so - would these
be in domain.com/public? or should it be installed at domain.com?
ANy advice would be great!
THank you.
--
You received
2012 Oct 01
10
Puppet 3.0 fails install on Solaris 10 w/ ruby 1.8.7
There''s a problem installing puppet on Solaris 10 -- in this situation, we
aren''t really doing anything with puppet there.
The version we''re using is:
ruby 1.8.7 (2011-02-18 patchlevel 334) [i386-solaris2.9]
Here''s the first error:
# gem update puppet
>
> Updating installed gems
>
> Updating puppet
>
> Building native extensions. This
2007 Dec 11
2
Build issues on Leopard
Hello,
I''m having some issues building r190 on Leopard (10.5.1):
$ rake
(in /Users/johan/temp/superredcloth)
ragel superredcloth_scan.rl | rlgen-cd -G2 -o superredcloth_scan.c
ragel superredcloth_inline.rl | rlgen-cd -G2 -o superredcloth_inline.c
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
extconf.rb
checking for main() in -lc... yes
creating Makefile
make
gcc -I.
2009 Aug 15
10
** PLEASE HELP A NEWBIE ** Status: 500 Internal Server Error no such file to load -- mysql
Hello All,
I have managed to upgrade ruby to 1.8.7.
However, when I use Terminal and ''cd'' to the app and run ''ruby script/
server'' ... I get an error when i click the link ''about your
applications environment''.
When I look into Terminal, it suggests Status: 500 Internal Server
Error
no such file to load -- mysql
How do I overcome this?