Hello, update:
I was using ruby version manager as suggested in several blog posts.
It actually worked fine till now.
Since I was encountering those problems with rails 3, I decided to try
the process in my system ruby, ruby enterprise 1.8.7 and it seems to
work well so far.
Both with sqlite and postgres.
Thanks a lot!
Luca B.

On Feb 12, 12:51 pm, "Luca B." <[email protected]> wrote:
> Hello,
> sorry for the delay in my reply, and thank you for the messages.
>
> I tried the followings without any luck...
> I did fresh RVM installs, both for ruby 1.9.1 and 1.8.7 and I
> configured the database.yml to use postgres. With sqlite the results
> are similar.
> I tried both the datamapper_on_rails3 and dm_rails3_app. Here is what
> I get.
> Thank you very much for your help, I'm eager to start to develop on
> top of datamapper! :-)
>
> ############ with ruby 1.9.1
>
> $:~/Ruby/learning/rails3_trial/datamapper_on_rails3$ gem install i18n
> tzinfo builder memcache-client rack rack-test rack-mount erubis mail
> text-format thor bundler
> Successfully
> $:~/Ruby/learning/rails3_trial/datamapper_on_rails3$ gem install rails
> --pre
> ERROR:  Error installing rails:
>         actionpack requires rack-mount (~> 0.4.0, runtime)
> $:~/Ruby/learning/rails3_trial/datamapper_on_rails3$ gem install rack-
> mount --version '0.4.0'
> $:~/Ruby/learning/rails3_trial/datamapper_on_rails3$ gem install rails
> --pre
> $:~/Ruby/learning/rails3_trial/datamapper_on_rails3$ bundle install
> Your bundle is complete!
> $:~/Ruby/learning/rails3_trial/datamapper_on_rails3$ rake db:setup
> (in /home/walle/Ruby/learning/rails3_trial/datamapper_on_rails3)
> [datamapper] Setting up the "development" environment:
> [datamapper] Setting up :default repository:
> 'datamapper_on_rails3_development' on postgres
> [datamapper] Created database 'datamapper_on_rails3_development'
> [datamapper] Created database 'datamapper_on_rails3_test'
> [datamapper] Finished auto_migrate! for :default repository
> 'datamapper_on_rails3_development'
> [datamapper] Setting up the "test" environment:
> [datamapper] Setting up :default repository:
> 'datamapper_on_rails3_test' on postgres
> [datamapper] Finished auto_migrate! for :default repository
> 'datamapper_on_rails3_test'
> $:~/Ruby/learning/rails3_trial/datamapper_on_rails3$ rails server
> => Booting WEBrick
> => Rails 3.0.0.beta application starting in development onhttp://0.0.0.0:3000
> => Call with -d to detach
> => Ctrl-C to shutdown server
> Exiting
> /home/walle/.rvm/gems/ruby-1.9.1-p378/gems/rack-1.1.0/lib/rack/
> server.rb:208:in `initialize': No such file or directory - tmp/pids/se
> rver.pid (Errno::ENOENT)
>         from /home/walle/.rvm/gems/ruby-1.9.1-p378/gems/rack-1.1.0/lib/rack/
> server.rb:208:in `open'
>         from /home/walle/.rvm/gems/ruby-1.9.1-p378/gems/rack-1.1.0/lib/rack/
> server.rb:208:in `write_pid'
>         from /home/walle/.rvm/gems/ruby-1.9.1-p378/gems/rack-1.1.0/lib/rack/
> server.rb:154:in `start'
>         from /home/walle/.rvm/gems/ruby-1.9.1-p378/gems/railties-3.0.0.beta/
> lib/rails/commands/server.rb:49:in `start'
>         from /home/walle/.rvm/gems/ruby-1.9.1-p378/gems/rack-1.1.0/lib/rack/
> server.rb:83:in `start'
>         from /home/walle/.rvm/gems/ruby-1.9.1-p378/gems/railties-3.0.0.beta/
> lib/rails/commands.rb:39:in `<top (required)>'
>         from /home/walle/Ruby/learning/rails3_trial/datamapper_on_rails3/
> script/rails:10:in `require'
>         from /home/walle/Ruby/learning/rails3_trial/datamapper_on_rails3/
> script/rails:10:in `<main>'
>
> ############ with ruby 1.9.1
>
> $:~/Ruby/learning/rails3_trial/datamapper_on_rails3$ rails server
> ruby: symbol lookup error: /home/walle/.bundle/gems/do_postgres-0.10.1/
> lib/do_postgres/do_postgres.so: undefined symbol: rb_intern2
> $:~/Ruby/learning/rails3_trial/datamapper_on_rails3$
>
> On Jan 31, 11:31 pm, kristian <[email protected]> wrote:
>
> > for rails 2.3.x have a look at (I am using it for several 
> > projects):http://github.com/mkristian/datamapper4rails
>
> > there is also rails template to get you 
> > started:http://github.com/mkristian/datamapper4rails/blob/master/datamapper_r...
>
> > regards
> > Kristian
>
> > On Jan 31, 1:27 am, "LucaB." <[email protected]> wrote:
>
> > > Hello,
> > > I searched a lot, but still unsuccessfully:
> > > I would like to use datamapper in a Rails 2.3 app: is there any
> > > "official" hot-to? For example I tried the rails_datamapper-gem-
> > > approach (but not only), but I get only errors...
> > > Maybe I'm the millionth asking that... :-)
> > > Moreover, I would like to start playing with Rails 3 and Datamapper:
> > > it is often said that Rails 3 will make a lot easier to replace
> > > ActiveRecord with Datamapper, but so far I didn't find any suggestion
> > > on how to do that in practice.
> > > I would be really sincerely grateful to anyone who could help me to
> > > begin!
> > >LucaB.

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en.

Reply via email to