OK, good to know. What the latest version I can use? Dave
On Wed, Jun 10, 2009 at 5:46 PM, Magnus Holm<judo...@gmail.com> wrote: > Unfornately, Camping doesn't (yet) work on Ruby 1.9.1. Unless someone else want to try > now, I'm going to have a look at it *after* 2.0 is released. > > //Magnus Holm > > > On Wed, Jun 10, 2009 at 22:30, David Susco <dsu...@gmail.com> wrote: >> >> I've disabled SELinux to see if I could get any farther. >> >> I managed to get passenger installed and working, however a fancy >> passenger generated page is telling me the app couldn't be started due >> to this error: >> >> `require': >> /usr/local/lib/ruby/gems/1.9.1/gems/camping-1.9.316/lib/camping.rb:11: >> syntax error, unexpected tLABEL (SyntaxError) >> p[0]==?/?...@root+p:p end;def URL c='/',*a;c=R(c,... >> >> It's the same thing when I try to rackup the .ru file, and the same >> when I try to execute this little bit of code: >> >> #!/usr/bin/env ruby -rubygems >> gem 'camping', '>=1.9.316' >> %w(rack camping).each { |lib| require lib } >> puts 'done' >> >> I'm tried reinstalled camping 1.9.316 but that didn't change anything. >> Any ideas? >> >> Dave >> >> On Wed, Jun 10, 2009 at 10:39 AM, David Susco<dsu...@gmail.com> wrote: >> > I'm trying to get passenger working presently, once I do I'll let you >> > know how the rest of it goes. >> > >> > When I try to load the module in the apache conf I get the following >> > error: >> > >> > Cannot load >> > /usr/lib/ruby/gems/1.8/gems/passenger-2.2.2/ext/apache2/mod_passenger.so >> > into server: >> > /usr/lib/ruby/gems/1.8/gems/passenger-2.2.2/ext/apache2/mod_passenger.so: >> > failed to map segment from shared object: Permission denied >> > >> > I'm assuming it's an SELinux problem, has anyone run into it before? >> > I've done the following already, so it hasn't helped: >> > >> > http://www.modrails.com/documentation/Users%20guide.html#_the_apache_error_log_says_that_the_spawn_manager_script_does_not_exist_or_that_it_does_not_have_permission_to_execute_it >> > >> > Dave >> > >> > >> > On Tue, Jun 9, 2009 at 11:28 AM, Jonathan Groll<li...@groll.co.za> >> > wrote: >> >> Hi David, >> >> >> >> On Tue, Jun 09, 2009 at 09:29:22AM -0400, David Susco wrote: >> >>> >> >>> I'd definitely be interested in seeing any work you do with this. >> >>> Having it up on the wiki would be nice too. >> >>> >> >>> I'm still trying to figure out deployment with camping 1.5. I've >> >>> experimented with 1.9.316 and rack but have yet to get an app to work >> >>> with that. The same with Picnic. >> >> >> >> Been meaning to write a quick overview of how I did it for you (as >> >> documentation is super sparse still). Briefly: >> >> >> >> (1) Read the passenger user guide at: >> >> http://www.modrails.com/documentation/Users%20guide.html >> >> >> >> I installed passenger from a gem but see the user's guide if you need >> >> to install on debian using apt (it is in the Ubuntu repositories >> >> already). >> >> Similarly rack is from a gem, and I use the same version of camping as >> >> you (from Judofyr's gem server). >> >> >> >> (2) Try and get the "hello world" from the passenger user guide to >> >> work for you. >> >> >> >> (3) Then try and get the blog example working that is shipped with >> >> camping. Here is a config.ru that works for that: >> >> >> >> require 'rubygems' >> >> require 'rack' >> >> require 'camping' >> >> require 'blog' >> >> Blog::Models::Base.establish_connection :adapter => "sqlite3", >> >> :database => "/home/jonathan/.camping.db" >> >> run Blog >> >> >> >> Change the database path to one you have on your system. You may need >> >> something like: >> >> Blog::Models.create_schema :assume => (Blog::Models::Post.table_exists? >> >> ? >> >> 1.0 : 0.0) >> >> >> >> before "run blog" if your sqlite database doesn't yet have the schema >> >> for the blog example. >> >> >> >> (4) And the apache config that I used was something like: >> >> >> >> <Directory /> >> >> Options ExecCGI FollowSymLinks >> >> AllowOverride all >> >> Allow from all >> >> </Directory> >> >> <VirtualHost *:80> >> >> ServerName www.rackexample.com >> >> DocumentRoot /var/www/blog/public >> >> </VirtualHost> >> >> >> >> You may need to edit your hosts file so that www.rackexample.com >> >> resolves to your apache server. >> >> >> >> (5) Let us know how it goes... >> >> >> >> Regards, >> >> Jonathan >> >> _______________________________________________ >> >> Camping-list mailing list >> >> Camping-list@rubyforge.org >> >> http://rubyforge.org/mailman/listinfo/camping-list >> >> >> > >> > >> > >> > -- >> > Dave >> > >> >> >> >> -- >> Dave >> _______________________________________________ >> Camping-list mailing list >> Camping-list@rubyforge.org >> http://rubyforge.org/mailman/listinfo/camping-list > > > _______________________________________________ > Camping-list mailing list > Camping-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > -- Dave _______________________________________________ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list