New to geany, and starting with ruby, so just finding my way so far.
I cannot seem to use the mail gem:
/home/thufir/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mail (LoadError) from /home/thufir/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from mail.rb:3:in `<main>'
------------------ (program exited with code: 1) Press return to continue
whereas from the CLI works fine:
thufir@dur:~/ruby$ thufir@dur:~/ruby$ ruby mail.rb hello world thufir@dur:~/ruby$ thufir@dur:~/ruby$ cat mail.rb require 'yaml' require 'net/imap' require 'mail'
puts 'hello world' thufir@dur:~/ruby$
what's going on?
thanks,
Thufir
On 18 December 2012 06:07, Thufir hawat.thufir@gmail.com wrote:
New to geany, and starting with ruby, so just finding my way so far.
I cannot seem to use the mail gem:
/home/thufir/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mail (LoadError) from /home/thufir/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from mail.rb:3:in `<main>'
(program exited with code: 1) Press return to continue
I presume this is the result of an execute command in Geany.
Do you start Geany from a desktop menu? If so the desktop is probably not running Geany in shell, so the shell variables (like Ruby search path) are not set. Try running Geany from a command line and see if that works.
Cheers Lex
whereas from the CLI works fine:
thufir@dur:~/ruby$ thufir@dur:~/ruby$ ruby mail.rb hello world thufir@dur:~/ruby$ thufir@dur:~/ruby$ cat mail.rb require 'yaml' require 'net/imap' require 'mail'
puts 'hello world' thufir@dur:~/ruby$
what's going on?
thanks,
Thufir _______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
On Tue, 18 Dec 2012 11:25:32 +1100, Lex Trotman wrote:
On 18 December 2012 06:07, Thufir hawat.thufir@gmail.com wrote:
New to geany, and starting with ruby, so just finding my way so far.
I cannot seem to use the mail gem:
/home/thufir/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/
rubygems/custom_require.rb:36:in
`require': cannot load such file -- mail (LoadError) from /home/thufir/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/
rubygems/custom_require.rb:36:in
`require' from mail.rb:3:in `<main>'
(program exited with code: 1) Press return to continue
I presume this is the result of an execute command in Geany.
Do you start Geany from a desktop menu? If so the desktop is probably not running Geany in shell, so the shell variables (like Ruby search path) are not set. Try running Geany from a command line and see if that works.
Cheers Lex
[...]
Hmm, nope, same result. Could this be a rvm issue? While rvm installed fine, and ruby works fine from the CLI, it doesn't report back as a function:
thufir@dur:~$ thufir@dur:~$ type rvm | head -n 1 rvm is /home/thufir/.rvm/bin/rvm thufir@dur:~$ thufir@dur:~$ rvm -v
rvm 1.17.2 (stable) by Wayne E. Seguin wayneeseguin@gmail.com, Michal Papis mpapis@gmail.com [https://rvm.io/]
thufir@dur:~$ thufir@dur:~$ which ruby /home/thufir/.rvm/bin/ruby thufir@dur:~$ thufir@dur:~$ ruby -v ruby 1.9.3p327 (2012-11-10 revision 37606) [i686-linux] thufir@dur:~$
-Thufir
On Tue, 18 Dec 2012 11:25:32 +1100, Lex Trotman wrote:
I presume this is the result of an execute command in Geany.
Do you start Geany from a desktop menu? If so the desktop is probably not running Geany in shell, so the shell variables (like Ruby search path) are not set. Try running Geany from a command line and see if that works.
Ok, this works. :)
thanks,
Thufir