Right Out the Gate

53 views
Skip to first unread message

Bobby Yribarren

unread,
Dec 14, 2010, 6:33:30 PM12/14/10
to EngineY
First off, I just wanted to say thank you, Timothy, for creating this
awesome framework and making yourself so available. I really look
forward to learning from it and being able to contribute.

ubuntu: 10.04.1
ruby (through rvm): 1.8.7
rails: 2.3.5

I run:
$ rake db:create:all

and I get:
rake aborted!
no such file to load -- disguise/tasks
/home/bobby/EngineY/Rakefile:12

I have run rake rake gems:install so I have the disguise and tasks
gems but if I comment out "require 'disguise/task'" in the rakefile it
works but then when I run: rake db:migrate I get: uninitialized
constant ActiveSupport::Concern.

What am I missing?


Thanks again for everything,
Bobby Yribarren

Tom Scott

unread,
Dec 15, 2010, 4:50:08 PM12/15/10
to eng...@googlegroups.com

Someone literally just asked this question. :)

You need Disguise 2.0.0, and I'm pretty sure rake:gems:install just runs a `gem install disguise` command, not specifying version, so by default it should install Disguise 3.0. You need to specify :version => '2.0.0' to get the right version of disguise.

-T
--
You received this message because you are subscribed to the Google Groups "EngineY" group.
To post to this group, send email to eng...@googlegroups.com.
To unsubscribe from this group, send email to enginey+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/enginey?hl=en.

Trav

unread,
Dec 15, 2010, 5:02:35 PM12/15/10
to EngineY
I updated the readme to describe by successful attempt at getting
EngineY running: https://github.com/OleTraveler/EngineY/blob/master/README.markdown

Steven Rogers

unread,
Dec 15, 2010, 5:28:13 PM12/15/10
to eng...@googlegroups.com

On Dec 15, 2010, at 3:50 PM, Tom Scott wrote:

>
> Someone literally just asked this question. :)
>
> You need Disguise 2.0.0, and I'm pretty sure rake:gems:install just runs a `gem install disguise` command, not specifying version, so by default it should install Disguise 3.0. You need to specify :version => '2.0.0' to get the right version of disguise.

in environment.rb, if the version is specified like:

config.gem "disguise", :version => '= 2.0.0'

then rake gems:install will do the right thing

SR

Bobby Yribarren

unread,
Dec 15, 2010, 7:45:40 PM12/15/10
to EngineY
Thanks guys! I made the necessary adjustments. If someone hadn't
just literally asked this question, how would have I known I had the
wrong gem version? : )

Also, apparently it is rake enginey:db:rubymi_populate (not rake
enginey:db:ruby_mi_populate.)

When I use the sqlite3 adapter I am able to run rake db:create:all and
rake db:migrate but when I run rake enginey:db:rubymi_populate I
eventually get:
Creating friendships...
rake aborted!
Couldn't find User with ID=1

and when I fire up the server I get this message in the browser:

SQLite3::SQLException: no such function: RAND: SELECT id, parent_id,
filename FROM "photos" WHERE ("photos"."thumbnail" IS NULL AND
"photos"."is_profile" IS NULL) ORDER BY RAND() LIMIT 6

When I use the msyql adapter and run rake db:create:all I get:
Couldn't create database for {"encoding"=>"UTF8", "username"=>"root",
"adapter"=>"mysql", "database"=>"enginey_development",
"host"=>"localhost", "password"=>nil}, charset: utf8, collation:
utf8_unicode_ci (if you set the charset manually, make sure you have a
matching collation)
Couldn't create database for {"encoding"=>"UTF8", "username"=>"root",
"adapter"=>"mysql", "database"=>"enginey_test", "host"=>"localhost",
"password"=>nil}, charset: utf8, collation: utf8_unicode_ci (if you
set the charset manually, make sure you have a matching collation)

Do you recommend going with mysql? If so, how do I get it to work?


BY

Tom Scott

unread,
Dec 15, 2010, 8:22:55 PM12/15/10
to eng...@googlegroups.com
Are you familiar with MySQL at all? It sounds like the MySQL user that you set up in config/database.yml doesn't have the required privileges on the MySQL server to create databases. You could either google GRANT USER and give yourself those permissions (not recommended, because if someone finds out your DB password they can take total control), or login to MySQL as root and create the database manually. Rails will automatically migrate into that database instead of trying to create a new one.

-T

Message has been deleted

Bobby Yribarren

unread,
Dec 16, 2010, 6:12:03 PM12/16/10
to EngineY
No, I am not that familiar with it but it looks like I will be. Since
I have Ubuntu shouldn't mysql_install_db automatically run? This
program populates the grant tables.

"Using the native packaging system on many platforms, including Debian
Linux, Ubuntu Linux, Gentoo Linux and others, the mysql_install_db
command is run for you. " http://dev.mysql.com/doc/refman/5.1/en/unix-postinstallation.html

"The initial root account passwords are empty, so anyone can connect
to the MySQL server as root without a password and be granted all
privileges." http://dev.mysql.com/doc/refman/5.1/en/default-privileges.html

In config/database.yml I have the user root but no password because I
thought that initially this would work out of the box. The problem is
I can't seem to login to MySQL as root. And if I wanted
to change the password I don't see why I can't just run:
mysqladmin -u root password "new_password"

Then I could create the database manually like you suggested.

What am I missing?


BY

Cican Rizal

unread,
Dec 20, 2010, 5:10:04 AM12/20/10
to eng...@googlegroups.com

:\Data Cican\Program TA>ruby script/server
> Booting WEBrick
> Rails 2.3.5 application starting on http://0.0.0.0:3000
:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb:119:Wa
ning: Gem::Dependency#version_requirements is deprecated and will be removed on
or after August 2010.  Use #requirement
> Call with -d to detach
> Ctrl-C to shutdown server
2010-12-20 16:44:47] INFO  WEBrick 1.3.1
2010-12-20 16:44:47] INFO  ruby 1.8.7 (2010-08-16) [i386-mingw32]
2010-12-20 16:44:47] INFO  WEBrick::HTTPServer#start: pid=3488 port=3000
 ←[4;36;1mSQL (0.0ms)←[0m   ←[0;1mSET SQL_AUTO_IS_NULL=0←[0m
!\ FAILSAFE /!\  Mon Dec 20 16:44:57 +0700 2010
 Status: 500 Internal Server Error
 no such file to load -- hpricot
   C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_orig
nal_require'
   C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'


gem install hpricot isn't doesn't work

ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-mingw32]

C:\Documents and Settings\compaq>rake gems:install
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2377:in `raw_load_rakef
ile'
(See full trace by running task with --trace)

C:\Documents and Settings\compaq>rake gems:install
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2377:in `raw_load_rakef
ile'
(See full trace by running task with --trace)

C:\Documents and Settings\compaq>rake gem:install
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2377:in `raw_load_rakef
ile'
(See full trace by running task with --trace)

C:\Documents and Settings\compaq>gem install -v=2.0.0 disguise
Successfully installed disguise-2.0.0
1 gem installed
Installing ri documentation for disguise-2.0.0...
Installing RDoc documentation for disguise-2.0.0...

C:\Documents and Settings\compaq>gem install -v=1.2.1 rack
Successfully installed rack-1.2.1
1 gem installed
Installing ri documentation for rack-1.2.1...
Installing RDoc documentation for rack-1.2.1...

C:\Documents and Settings\compaq>gem install hpricot
ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
    SocketError: getaddrinfo: The storage control blocks were destroyed.  (http:
//rubygems.org/gems/hpricot-0.8.3.gem)

C:\Documents and Settings\compaq>rake gem:install
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2377:in `raw_load_rakef
ile'
(See full trace by running task with --trace)

C:\Documents and Settings\compaq>gem uninstall -v=3.0.2 disguise
Successfully uninstalled disguise-3.0.2

C:\Documents and Settings\compaq>gem install hpricot
ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
    SocketError: getaddrinfo: The storage control blocks were destroyed.  (http:
//rubygems.org/gems/hpricot-0.8.3.gem)

C:\Documents and Settings\compaq>rake gem:install
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2377:in `raw_load_rakef
ile'
(See full trace by running task with --trace)

C:\Documents and Settings\compaq>rake gems:install
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2377:in `raw_load_rakef
ile'
(See full trace by running task with --trace)

C:\Documents and Settings\compaq>gem install hpricot
ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
    SocketError: getaddrinfo: The storage control blocks were destroyed.  (http:
//rubygems.org/gems/hpricot-0.8.3.gem)





From: Steven Rogers <srog...@gmail.com>
To: eng...@googlegroups.com
Sent: Thu, December 16, 2010 5:28:13 AM
Subject: Re: Right Out the Gate
--
You received this message because you are subscribed to the Google Groups "EngineY" group.
To post to this group, send email to eng...@googlegroups.com.
To unsubscribe from this group, send email to enginey+unsub...@googlegroups.com.

Bobby Yribarren

unread,
Dec 22, 2010, 7:48:04 PM12/22/10
to EngineY
Just wanted to say that after un-installing and installing MySQL
(client and server) a few times, I was finally able to set up MySQL
user root properly and got the framework a runnin'. Cool. Really
cool.


BY
Reply all
Reply to author
Forward
0 new messages