Troubles in radiant installation on windows


#1

Hi,

I am new to radiant and try to install it and learn something from it.
So I followed the introductions from wiki and blog:

http://dev.radiantcms.org/radiant/wiki/Installation
http://radiantcms.org/blog/

Both 0.6.0rc2 and code from subversion I have tried, and the same
errors came out:

D:\test\myapp>rake production db:bootstrap --trace
(in D:/test/myapp)
** Invoke production (first_time)
** Execute production
** Invoke environment (first_time)
** Execute environment
rake aborted!
wrong number of arguments (1 for 0)
c:/ruby/lib/ruby/gems/1.8/gems/radiant-0.6.0/vendor/rails/activerecord/lib/activ
e_record/vendor/mysql.rb:566:in initialize' c:/ruby/lib/ruby/gems/1.8/gems/radiant-0.6.0/vendor/rails/activerecord/lib/activ e_record/vendor/mysql.rb:566:innew’
c:/ruby/lib/ruby/gems/1.8/gems/radiant-0.6.0/vendor/rails/activerecord/lib/activ
e_record/vendor/mysql.rb:566:in scramble41' c:/ruby/lib/ruby/gems/1.8/gems/radiant-0.6.0/vendor/rails/activerecord/lib/activ e_record/vendor/mysql.rb:144:inreal_connect’
c:/ruby/lib/ruby/gems/1.8/gems/radiant-0.6.0/vendor/rails/activerecord/lib/activ
e_record/connection_adapters/mysql_adapter.rb:389:in connect' c:/ruby/lib/ruby/gems/1.8/gems/radiant-0.6.0/vendor/rails/activerecord/lib/activ e_record/connection_adapters/mysql_adapter.rb:152:ininitialize’
c:/ruby/lib/ruby/gems/1.8/gems/radiant-0.6.0/vendor/rails/activerecord/lib/activ
e_record/connection_adapters/mysql_adapter.rb:82:in new' c:/ruby/lib/ruby/gems/1.8/gems/radiant-0.6.0/vendor/rails/activerecord/lib/activ e_record/connection_adapters/mysql_adapter.rb:82:inmysql_connection’
c:/ruby/lib/ruby/gems/1.8/gems/radiant-0.6.0/vendor/rails/activerecord/lib/activ
e_record/connection_adapters/abstract/connection_specification.rb:262:in
send' c:/ruby/lib/ruby/gems/1.8/gems/radiant-0.6.0/vendor/rails/activerecord/lib/activ e_record/connection_adapters/abstract/connection_specification.rb:262:inconnec
tion_without_query_cache=’
c:/ruby/lib/ruby/gems/1.8/gems/radiant-0.6.0/vendor/rails/activerecord/lib/activ
e_record/query_cache.rb:54:in connection=' c:/ruby/lib/ruby/gems/1.8/gems/radiant-0.6.0/vendor/rails/activerecord/lib/activ e_record/connection_adapters/abstract/connection_specification.rb:230:inretrie
ve_connection’
c:/ruby/lib/ruby/gems/1.8/gems/radiant-0.6.0/vendor/rails/activerecord/lib/activ
e_record/connection_adapters/abstract/connection_specification.rb:78:in
connect ion' c:/ruby/lib/ruby/gems/1.8/gems/radiant-0.6.0/lib/radiant/initializer.rb:41:ini
nitialize_extensions’
c:/ruby/lib/ruby/gems/1.8/gems/radiant-0.6.0/lib/radiant/initializer.rb:36:in
a fter_initialize' c:/ruby/lib/ruby/gems/1.8/gems/radiant-0.6.0/vendor/rails/railties/lib/initializ er.rb:114:inprocess’
c:/ruby/lib/ruby/gems/1.8/gems/radiant-0.6.0/vendor/rails/railties/lib/initializ
er.rb:43:in send' c:/ruby/lib/ruby/gems/1.8/gems/radiant-0.6.0/vendor/rails/railties/lib/initializ er.rb:43:inrun’
c:/ruby/lib/ruby/gems/1.8/gems/radiant-0.6.0/lib/radiant/initializer.rb:32:in
r un' D:/test/myapp/config/../config/environment.rb:15 c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:ingem_original_re
quire’
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
require' c:/ruby/lib/ruby/gems/1.8/gems/radiant-0.6.0/vendor/rails/railties/lib/tasks/mis c.rake:3 c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:399:incall’
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:399:in execute' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:399:ineach’
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:399:in execute' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:369:ininvoke’
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:362:in
synchronize' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:362:ininvoke’
c:/ruby/lib/ruby/gems/1.8/gems/radiant-0.6.0/lib/tasks/environments.rake:10
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:399:in call' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:399:inexecute’
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:399:in each' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:399:inexecute’
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:369:in invoke' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:362:insynchronize’
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:362:in invoke' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:1935:inrun’
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:1935:in each' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:1935:inrun’
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.2/bin/rake:7
c:/ruby/bin/rake.bat:20:in `load’
c:/ruby/bin/rake.bat:20

I used mysql as backend and my ruby version is ruby 1.8.6 (2007-03-13
patchlevel 0) [i386-mswin32], rails is 1.2.3. Could you please help me
out? Thanks!

Regards

/Jack


Keep Discovering … …
http://jack.lifegoo.com


#2

Jack Tang wrote:

wrong number of arguments (1 for 0)
c:/ruby/lib/ruby/gems/1.8/gems/radiant-0.6.0/vendor/rails/activerecord/lib/activ
e_record/vendor/mysql.rb:566:in `initialize’

That is really strange. It looks like you are having problems with the
mysql driver. Did you install using the One-Click installer? If not do
you know whether or not you are using the ruby-based mysql drivers or
the C-ruby mysql drivers?

Any Windows users care to give Jack a hand?


John L.
http://wiseheartdesign.com


#3

On 4/9/07, John W. Long removed_email_address@domain.invalid wrote:

rake aborted!
wrong number of arguments (1 for 0)
c:/ruby/lib/ruby/gems/1.8/gems/radiant-0.6.0/vendor/rails/activerecord/lib/activ
e_record/vendor/mysql.rb:566:in `initialize’

That is really strange. It looks like you are having problems with the
mysql driver. Did you install using the One-Click installer?

Yes, I did install using the One-Click installer

If not do
you know whether or not you are using the ruby-based mysql drivers or
the C-ruby mysql drivers?

Ruby-based mysql driver. And it works fine in my own rails application.


Keep Discovering … …
http://jack.lifegoo.com


#4

Jack Tang wrote:

Ruby-based mysql driver. And it works fine in my own rails application.
What does your config/database.yml look like?


John L.
http://wiseheartdesign.com


#5

Follow the instruction of the article(http://radiantcms.org/download/),
and that will help you to fix you problems.

regards.
captain


#6

after run “radiant -d mysql myapp”, the dabase.yml file is generated.

MySQL (default setup). Versions 4.1 and 5.0 are recommended.

Install the MySQL driver:

gem install mysql

On MacOS X:

gem install mysql – --include=/usr/local/lib

On Windows:

There is no gem for Windows. Install mysql.so from RubyForApache.

http://rubyforge.org/projects/rubyforapache

And be sure to use new-style password hashing:

http://dev.mysql.com/doc/refman/5.0/en/old-client.html

development:
adapter: mysql
database: myapp_development
username: root
password:
host: localhost

Warning: The database defined as ‘test’ will be erased and

re-generated from your development database when you run ‘rake’.

Do not set this db to the same as development or production.

test:
adapter: mysql
database: myapp_test
username: root
password:
host: localhost

production:
adapter: mysql
database: myapp_production
username: root
password:
host: localhost

On 4/9/07, John W. Long removed_email_address@domain.invalid wrote:

Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant


Keep Discovering … …
http://jack.lifegoo.com


#7

On 4/28/07, Captain F. removed_email_address@domain.invalid wrote:

Follow the instruction of the article(http://radiantcms.org/download/),
and that will help you to fix you problems.

regards.
captain

Yes, I tried yesterday. It worked great! Thanks.


Posted via http://www.ruby-forum.com/.


Radiant mailing list
Post: removed_email_address@domain.invalid
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant


Keep Discovering … …
http://jack.lifegoo.com