which gem
and if you run
ruby -e 'puts RUBY_VERSION'
?
On Wed, Aug 03, 2011 at 12:48 AM, jshou <josh...@gmail.com> wrote:
> from: jshou <josh...@gmail.com>
> date: Tue, Aug 02 09:48 PM -07:00 2011
> to: vmail-users <vmail...@googlegroups.com>
> reply-to: vmail...@googlegroups.com
> subject: osx, rvm, vmail won't install
--
Sent from vmail. http://danielchoi.com/software/vmail.html
jshou@buh ~$ ruby -e 'puts RUBY_VERSION'
1.9.2
jshou@buh ~$ which gem
/usr/local/jruby-1.6.2/bin/gem
jshou@buh ~$
I've removed jruby now and installed vmail successfully, but when I
run I get the following:
jshou@buh ~$ vmail
/Users/jshou/.rvm/gems/ruby-1.9.2-p180/gems/vmail-2.2.9/lib/vmail/database.rb:5:
warning: Insecure world writable dir
/Users/jshou/Documents/programming in PATH, mode 040777
/Users/jshou/.rvm/gems/ruby-1.9.2-p180/gems/sequel-3.26.0/lib/sequel/adapters/sqlite.rb:62:in
`initialize': TypeError: wrong argument type SQLite3::Database
(expected nil) (Sequel::DatabaseConnectionError)
from /Users/jshou/.rvm/gems/ruby-1.9.2-p180/gems/sequel-3.26.0/lib/sequel/adapters/sqlite.rb:62:in
`new'
from /Users/jshou/.rvm/gems/ruby-1.9.2-p180/gems/sequel-3.26.0/lib/sequel/adapters/sqlite.rb:62:in
`connect'
This is after I've set a .vmailrc file. Any ideas?
Thank you so much,
Joshua
Try this from the command line:
sequel sqlite://test.db
You should see a ruby irb prompt. If you do, just exit.
Does this work?
On Wed, Aug 03, 2011 at 11:13 AM, Joshua <josh...@gmail.com> wrote:
> from: Joshua <josh...@gmail.com>
> date: Wed, Aug 03 08:13 AM -07:00 2011
> to: vmail...@googlegroups.com
> reply-to: vmail...@googlegroups.com
> subject: Re: osx, rvm, vmail won't install
jshou@buh ~$ sequel sqlite://test.db
Error: Sequel::DatabaseConnectionError: TypeError: wrong argument type
SQLite3::Database (expected
nil)/Users/jshou/.rvm/gems/ruby-1.9.2-p180/gems/sequel-3.26.0/lib/sequel/adapters/sqlite.rb:62:in
`initialize'
jshou@buh ~$
At first it was complaining that jruby didn't exist, so I suspected
some of the gems I had were in jruby, so I created a new gemset and
installed from scratch. "sequel "sqlite://test.db" now gets me an irb
prompt, but now when I run vmail, it complains that iconv won't load.
So I run "gem install iconv" but I get native compilation errors, even
after "brew install libiconv"
jshou@buh ~$ gem install iconv
Building native extensions. This could take a while...
ERROR: Error installing iconv:
ERROR: Failed to build gem native extension.
/Users/jshou/.rvm/rubies/ruby-1.9.2-p180/bin/ruby extconf.rb
checking for iconv() in iconv.h... no
checking for iconv() in -liconv... no
Here's how to install iconv
http://beginrescueend.com/packages/iconv/
But if you then complaints about openssl or zlib not being installed,
try these:
http://beginrescueend.com/packages/openssl/
http://beginrescueend.com/packages/zlib/
You may have to combine all the compiler flags (--with-zlib= etc.) when
you reinstall Ruby.
On Wed, Aug 03, 2011 at 11:58 AM, Joshua <josh...@gmail.com> wrote:
> from: Joshua <josh...@gmail.com>
> date: Wed, Aug 03 08:58 AM -07:00 2011
On Wed, Aug 03, 2011 at 09:05 AM, Daniel Choi <dhc...@gmail.com> wrote:
> from: Daniel Choi <dhc...@gmail.com>
> date: Wed, Aug 03 12:05 PM -04:00 2011
> to: vmail...@googlegroups.com
> cc: dhc...@gmail.com