osx, rvm, vmail won't install

173 views
Skip to first unread message

jshou

unread,
Aug 3, 2011, 12:48:40 AM8/3/11
to vmail-users
I'm using rvm's ruby1.9 on OSX Snow Leopard and trying to install
vmail. When I run "gem install vmail", it says the version of Ruby I
have is not correct. I suspect this is some kind of rvm issue, but
I'm not sure what to do with it. Anybody else have this problem?

jshou@buh ~$ gem install vmail
ERROR: Error installing vmail:
vmail requires Ruby version >= 1.9.0.
jshou@buh ~$ ruby -v
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.6.0]
jshou@buh ~$ rvm -v

rvm 1.2.7 by Wayne E. Seguin (waynee...@gmail.com) [http://
rvm.beginrescueend.com/]

jshou@buh ~$ gem -v
1.5.1
jshou@buh ~$

Daniel Choi

unread,
Aug 3, 2011, 10:18:33 AM8/3/11
to vmail...@googlegroups.com, dhc...@gmail.com
What do you get if you run

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

Joshua

unread,
Aug 3, 2011, 11:13:30 AM8/3/11
to vmail...@googlegroups.com
Ah, which gem reveals the problem. I had jruby installed without rvm.

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

Daniel Choi

unread,
Aug 3, 2011, 11:20:03 AM8/3/11
to vmail...@googlegroups.com, dhc...@gmail.com
OK glad you fixed the gem command problem.

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

Joshua

unread,
Aug 3, 2011, 11:58:47 AM8/3/11
to vmail...@googlegroups.com
I don't get an irb prompt, I get this:

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

Daniel Choi

unread,
Aug 3, 2011, 12:05:04 PM8/3/11
to vmail...@googlegroups.com, dhc...@gmail.com
OK we're making progress here

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

Daniel Choi

unread,
Aug 4, 2011, 1:52:36 AM8/4/11
to vmail...@googlegroups.com
It works! I am replying with vmail. Thanks so much for helping me out
with all of this, I really appreciate it!

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

Reply all
Reply to author
Forward
0 new messages