|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
Problems requiring gemsHello everyone, first of all, sorry about my english, I do it the best I can. I´m developing with netbeans 6.7.1 with ruby, I´m having problems adding gems to my ruby aplication, I need to use "spreadsheet" gem to work with xls files. I have that in my main: Code: require "spreadsheet" And the gem is allready installed (I also find the gem in it´s route): [Image: http://img32.imageshack.us/img32/8181/gemsinstall.jpg ] (http://img32.imageshack.us/i/gemsinstall.jpg/) This is the configuration of my proyect: [Image: http://img245.imageshack.us/img245/6238/configuration.jpg ] (http://img245.imageshack.us/i/configuration.jpg/) I have allready tried with "Built-in JRuby 1.2.0" but it did´nt work. ¿What can I do? Please respond with easy english to understand it. Thanks a lot. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Problems requiring gemsHello, Do you have require "rubygems" before 'require "spreadsheet"' in your file? You need to load RubyGems itself before accessing any gems - please see http://rubygems.org/read/chapter/3#page70 for details and for other options. HTH, Erno jorgegetafe wrote: > Hello everyone, first of all, sorry about my english, I do it the best I can. > > > > I´m developing with netbeans 6.7.1 with ruby, I´m having problems adding gems to my ruby aplication, I need to use "spreadsheet" gem to work with xls files. > > > > I have that in my main: > > > > > Code: > require "spreadsheet" > > > > > > And the gem is allready installed (I also find the gem in it´s route): > > > > [Image: http://img32.imageshack.us/img32/8181/gemsinstall.jpg ] (http://img32.imageshack.us/i/gemsinstall.jpg/) > > > > This is the configuration of my proyect: > > > > [Image: http://img245.imageshack.us/img245/6238/configuration.jpg ] (http://img245.imageshack.us/i/configuration.jpg/) > > > > I have allready tried with "Built-in JRuby 1.2.0" but it did´nt work. > > > > ¿What can I do? Please respond with easy english to understand it. Thanks a lot. > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Problems requiring gemsthanks a lot it worked! --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Problems requiring gemsIt was working corretly but when I do a "gets.chomp" the program always crash with this error: No such file or directory - -rubygems I only have"rubygems" in the require and in the arguments project properties (to solutionate the problema with the require 'spreadsheet'): Code: require 'rubygems' [Image: http://img245.imageshack.us/img245/2031/dibujoqw.jpg ] (http://img245.imageshack.us/i/dibujoqw.jpg/) ¿what is the problem? ¿How can i fixe it? Thanks. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Problems requiring gemsHello, You should have the -rubygems switch in the Ruby Options field (not in the Arguments field). HTH, Erno jorgegetafe wrote: > It was working corretly but when I do a "gets.chomp" the program always crash with this error: > > > > No such file or directory - -rubygems > > > > I only have"rubygems" in the require and in the arguments project properties (to solutionate the problema with the require 'spreadsheet'): > > > > > Code: > require 'rubygems' > > > > [Image: http://img245.imageshack.us/img245/2031/dibujoqw.jpg ] (http://img245.imageshack.us/i/dibujoqw.jpg/) > > > > ¿what is the problem? ¿How can i fixe it? Thanks. > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Problems requiring gemsPerfect!! Thanks! --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
| Free embeddable forum powered by Nabble | Forum Help |