From luis.fernando.flores.oviedo at gmail.com Thu Dec 2 19:48:14 2010 From: luis.fernando.flores.oviedo at gmail.com (Luis Flores) Date: Thu, 2 Dec 2010 18:48:14 -0600 Subject: [Mongrel] ERROR: Failed to build gem native extension. Message-ID: Hello, I am currently not able to instal mongrel, I run a Linux Ubuntu 10.04 system with Gems 1.3.7 when I do a "sudo gem install mongrel" I get this sequence of messages: $ sudo gem install mongrel Building native extensions. This could take a while... ERROR: Error installing mongrel: ERROR: Failed to build gem native extension. /usr/local/bin/ruby extconf.rb checking for main() in -lc... yes creating Makefile make gcc -I. -I/usr/local/include/ruby-1.9.1/i686-linux -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -D_FILE_OFFSET_BITS=64 -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -o http11.o -c http11.c http11.c: In function ?http_field?: http11.c:70: warning: format not a string literal and no format arguments http11.c:71: warning: format not a string literal and no format arguments http11.c:77: error: ?struct RString? has no member named ?ptr? http11.c:77: error: ?struct RString? has no member named ?len? http11.c: In function ?request_uri?: http11.c:102: warning: format not a string literal and no format arguments http11.c: In function ?fragment?: http11.c:113: warning: format not a string literal and no format arguments http11.c: In function ?request_path?: http11.c:124: warning: format not a string literal and no format arguments http11.c: In function ?query_string?: http11.c:135: warning: format not a string literal and no format arguments http11.c: In function ?header_done?: http11.c:172: error: ?struct RString? has no member named ?ptr? http11.c:172: error: ?struct RString? has no member named ?ptr? http11.c:172: error: ?struct RString? has no member named ?ptr? http11.c:174: error: ?struct RString? has no member named ?ptr? http11.c:176: error: ?struct RString? has no member named ?ptr? http11.c:177: error: ?struct RString? has no member named ?len? http11.c: In function ?HttpParser_execute?: http11.c:298: error: ?struct RString? has no member named ?ptr? http11.c:299: error: ?struct RString? has no member named ?len? http11.c:307: warning: format not a string literal and no format arguments make: *** [http11.o] Error 1 Gem files will remain installed in /usr/local/lib/ruby/gems/1.9.1/gems/mongrel-1.1.5 for inspection. Results logged to /usr/local/lib/ruby/gems/1.9.1/gems/mongrel-1.1.5/ext/http11/gem_make.out Would you please help me? Thank you in advance for your valuable time. -- Luis Fernando Flores Oviedo Project Management Professional No. 480222 Mobil: (449) 126 7789 "The only place success comes before work is in the dictionary." Vince Lombardi -------------- next part -------------- An HTML attachment was scrubbed... URL: From luislavena at gmail.com Thu Dec 2 20:09:21 2010 From: luislavena at gmail.com (Luis Lavena) Date: Thu, 2 Dec 2010 22:09:21 -0300 Subject: [Mongrel] ERROR: Failed to build gem native extension. In-Reply-To: References: Message-ID: On Thu, Dec 2, 2010 at 9:48 PM, Luis Flores wrote: > Hello, I am currently not able to instal mongrel, I run a Linux Ubuntu 10.04 > system with Gems 1.3.7 when I do a "sudo gem install mongrel" I get this > sequence of messages: [SNIP] > $ sudo gem install mongrel > gcc -I. -I/usr/local/include/ruby-1.9.1/i686-linux > -I/usr/local/include/ruby-1.9.1/ruby/backward > -I/usr/local/include/ruby-1.9.1 -I. -D_FILE_OFFSET_BITS=64 -fPIC -O3 -ggdb > -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith > -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -o http11.o > -c http11.c > /usr/local/lib/ruby/gems/1.9.1/gems/mongrel-1.1.5/ext/http11/gem_make.out > > Would you please help me? Mongrel 1.1.5 is not compatible with Ruby 1.9.x You need to install the pre-release version: gem install mongrel --pre -- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exup?ry From lists at ruby-forum.com Tue Dec 7 16:54:05 2010 From: lists at ruby-forum.com (Greg Ma) Date: Tue, 07 Dec 2010 22:54:05 +0100 Subject: [Mongrel] 2 rails app on the same domain Message-ID: <84f711f10ab8942cdb8583ad88ba3d4f@ruby-forum.com> Hi, I have 2 app. One one www.mysite.com and the second one on www.mysite.com/alerts I have an issue with the routes on the second app. The Rails app thinks "/alerts" is in my routes, whereas it should be the root of my app. How do I override this in my routes or production file? Greg -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Mon Dec 13 06:24:40 2010 From: lists at ruby-forum.com (Sebastien Perret) Date: Mon, 13 Dec 2010 12:24:40 +0100 Subject: [Mongrel] Mongrel service keeps re-starting ruby In-Reply-To: References: , <71166b3b0906250519y68c00193l8c47e9e136b70809@mail.gmail.com>, , <4A4384D3.3030204@jhu.edu>, Message-ID: <019a1bdfc33066e219b98f7edc27d3f5@ruby-forum.com> Hi All, I have exactly the same problem : mongrel keeps restarting the ruby process. I have installed the patch_for_mongrel.rb proposed by Jonathan. I have ruby 1.8.7 (2010-06-23 patchlevel 299) [i386-mingw32] My version of Gem is 1.3.7. Here is the result of my command : U:\>mongrel_rails start -e production -p 3001 -a 10.0.5.201 -l "mongrel.log" -P "mongrel.pid" -c "D:/wamp/www/redmine" -t 0 -r "public" -n 1024 ** Starting Mongrel listening at 10.0.5.201:3001 ** Starting Rails with production environment... D:/wamp/www/redmine/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be remo ved on or after August 2010. Use #requirement d:/Ruby187/lib/ruby/1.8/yaml.rb:133:in `load': syntax error on line 74, col 21: ` authentication: : login' (ArgumentError) from d:/Ruby187/lib/ruby/1.8/yaml.rb:133:in `load' from d:/Ruby187/lib/ruby/1.8/yaml.rb:144:in `load_file' from d:/Ruby187/lib/ruby/1.8/yaml.rb:143:in `open' from d:/Ruby187/lib/ruby/1.8/yaml.rb:143:in `load_file' from D:/wamp/www/redmine/config/initializers/40-email.rb:6 from D:/wamp/www/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:147:in `load_without_new_constant_marking' from D:/wamp/www/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:147:in `load' from D:/wamp/www/redmine/config/../vendor/rails/railties/lib/initializer.rb:622:in `load_application_initializers' from D:/wamp/www/redmine/config/../vendor/rails/railties/lib/initializer.rb:621:in `each' from D:/wamp/www/redmine/config/../vendor/rails/railties/lib/initializer.rb:621:in `load_application_initializers' from D:/wamp/www/redmine/config/../vendor/rails/railties/lib/initializer.rb:176:in `process' from D:/wamp/www/redmine/config/../vendor/rails/railties/lib/initializer.rb:113:in `send' from D:/wamp/www/redmine/config/../vendor/rails/railties/lib/initializer.rb:113:in `run' from D:/wamp/www/redmine/config/environment.rb:20 from d:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from d:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from d:/Ruby187/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/../lib/mongrel/rails.rb:147:in `rails' from d:/Ruby187/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/mongrel_rails:113:in `cloaker_' from d:/Ruby187/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/../lib/mongrel/configurator.rb:149:in `call' from d:/Ruby187/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/../lib/mongrel/configurator.rb:149:in `listener' from d:/Ruby187/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/mongrel_rails:99:in `cloaker_' from d:/Ruby187/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/../lib/mongrel/configurator.rb:50:in `call' from d:/Ruby187/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/../lib/mongrel/configurator.rb:50:in `initialize' from d:/Ruby187/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/mongrel_rails:84:in `new' from d:/Ruby187/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/mongrel_rails:84:in `run' from d:/Ruby187/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/../lib/mongrel/command.rb:212:in `run' from d:/Ruby187/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/mongrel_rails:281 from d:/Ruby187/bin/mongrel_rails:19:in `load' from d:/Ruby187/bin/mongrel_rails:19 Any Idea ? -- Posted via http://www.ruby-forum.com/. From luislavena at gmail.com Mon Dec 13 07:57:37 2010 From: luislavena at gmail.com (Luis Lavena) Date: Mon, 13 Dec 2010 09:57:37 -0300 Subject: [Mongrel] Mongrel service keeps re-starting ruby In-Reply-To: <019a1bdfc33066e219b98f7edc27d3f5@ruby-forum.com> References: <71166b3b0906250519y68c00193l8c47e9e136b70809@mail.gmail.com> <4A4384D3.3030204@jhu.edu> <019a1bdfc33066e219b98f7edc27d3f5@ruby-forum.com> Message-ID: On Mon, Dec 13, 2010 at 8:24 AM, Sebastien Perret wrote: > Hi All, > > I have exactly the same problem : mongrel keeps restarting the ruby > process. > I have installed the patch_for_mongrel.rb proposed by Jonathan. I have > ruby 1.8.7 (2010-06-23 patchlevel 299) [i386-mingw32] > My version of Gem is 1.3.7. Here is the result of my command : > > U:\>mongrel_rails start -e production -p 3001 -a 10.0.5.201 -l > "mongrel.log" -P "mongrel.pid" -c "D:/wamp/www/redmine" -t 0 -r "public" > -n 1024 > ** Starting Mongrel listening at 10.0.5.201:3001 > ** Starting Rails with production environment... > D:/wamp/www/redmine/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:119:Warning: > Gem::Dependency#version_requirements is deprecated and will be remo > ved on or after August 2010. ?Use #requirement > d:/Ruby187/lib/ruby/1.8/yaml.rb:133:in `load': syntax error on line 74, > col 21: ` ? ?authentication: : login' (ArgumentError) > ? ? ? ?from d:/Ruby187/lib/ruby/1.8/yaml.rb:133:in `load' > > Any Idea ? > Yes, please read the exception: "syntax error on line 74, ..." that is reading a YAML file, check there is no tab or incorrect indentation in that file. -- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exup?ry From lists at ruby-forum.com Mon Dec 13 08:20:10 2010 From: lists at ruby-forum.com (Sebastien Perret) Date: Mon, 13 Dec 2010 14:20:10 +0100 Subject: [Mongrel] Mongrel service keeps re-starting ruby In-Reply-To: References: Message-ID: <67210edd5f0e8886a0457d69b7d612ec@ruby-forum.com> I have checked the .yml file. See attached to my post. The error refers to a comment line. Nothing before the line 74 looks wrong. No tabulation reached. I have moved the yml file and install again ruby with the installer.exe. The old yml file and the new one matches, no diff?rence found. Pretty strange ... Attachments: http://www.ruby-forum.com/attachment/5544/yaml.rb -- Posted via http://www.ruby-forum.com/. From luislavena at gmail.com Mon Dec 13 08:31:24 2010 From: luislavena at gmail.com (Luis Lavena) Date: Mon, 13 Dec 2010 10:31:24 -0300 Subject: [Mongrel] Mongrel service keeps re-starting ruby In-Reply-To: <67210edd5f0e8886a0457d69b7d612ec@ruby-forum.com> References: <67210edd5f0e8886a0457d69b7d612ec@ruby-forum.com> Message-ID: On Mon, Dec 13, 2010 at 10:20 AM, Sebastien Perret wrote: > I have checked the .yml file. See attached to my post. The error refers > to a comment line. Nothing before the line 74 looks wrong. No tabulation > reached. You attached the ruby file from YAML, but if you look at the reference in the output: `load': syntax error on line 74, col 21: ` authentication: : login' You have a YAML file that contains a ": login" that is not a symbol. There should not be spaces for symbols. Please check your yaml files, not the YAML parser. > I have moved the yml file and install again ruby with the installer.exe. > The old yml file and the new one matches, no diff?rence found. Pretty > strange ... This has nothing to do with the YAML parser or Ruby, is one of your configuration files. -- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exup?ry From lists at ruby-forum.com Mon Dec 13 08:30:48 2010 From: lists at ruby-forum.com (Sebastien Perret) Date: Mon, 13 Dec 2010 14:30:48 +0100 Subject: [Mongrel] Mongrel service keeps re-starting ruby In-Reply-To: References: Message-ID: <8785fa4db293b7be51813a163921d1e4@ruby-forum.com> Sorry, I have found many tabulation in this file replaced them with space caracter but the problem remained. -- Posted via http://www.ruby-forum.com/. From luislavena at gmail.com Mon Dec 13 09:08:14 2010 From: luislavena at gmail.com (Luis Lavena) Date: Mon, 13 Dec 2010 11:08:14 -0300 Subject: [Mongrel] Mongrel service keeps re-starting ruby In-Reply-To: <8785fa4db293b7be51813a163921d1e4@ruby-forum.com> References: <8785fa4db293b7be51813a163921d1e4@ruby-forum.com> Message-ID: On Mon, Dec 13, 2010 at 10:30 AM, Sebastien Perret wrote: > Sorry, I have found many tabulation in this file replaced them with > space caracter but the problem remained. > Can you pastie the file that contains the authentication line I mentioned before? There must be a syntax error there you're not seeing. -- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exup?ry From lists at ruby-forum.com Mon Dec 13 11:33:16 2010 From: lists at ruby-forum.com (Sebastien Perret) Date: Mon, 13 Dec 2010 17:33:16 +0100 Subject: [Mongrel] Mongrel service keeps re-starting ruby In-Reply-To: References: Message-ID: <3ce2b7f98439b9df3041f633b05e1c28@ruby-forum.com> You solved my problem ! It was amazing for a php devlopper like me to see the starting ruby service was parsing a yml file I edited one week ago in the redmine application whereas redmine was still working fine yesterday. Anyway thanks a lot for your help Luis, I would not think about searching in my redmine directory the solution. regards. -- Posted via http://www.ruby-forum.com/.