Problems installing latest version.

127 views
Skip to first unread message

HeX

unread,
Oct 5, 2009, 5:07:14 AM10/5/09
to larch
Hi when I try to install the latest larch version I get:
---8<---
$ gem install rgrove-larch

Building native extensions. This could take a while...
ERROR: Error installing rgrove-larch:
ERROR: Failed to build gem native extension.

/usr/bin/ruby1.9 extconf.rb install rgrove-larch
extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:1:in `<main>'
---8<---

Any idea what's going wrong here?

Ryan Grove

unread,
Oct 5, 2009, 1:34:03 PM10/5/09
to la...@googlegroups.com

Sounds like you're missing the header files needed to compile Ruby
extensions. If the dev headers don't come with your distro's Ruby
package by default, there should be a separate package for them. For
example, in Debian/Ubuntu, you'd want to install the ruby1.9-dev
package: sudo apt-get install ruby1.9-dev

- Ryan

HeX

unread,
Oct 6, 2009, 12:50:16 AM10/6/09
to larch
Thanks, this and libsqlite3-dev were missing. Now I could get it to
install.

Sadly it will now complain about the 'from' IMAP URI.

$ /var/lib/gems/1.9.0/bin/larch -n
Config error: 'from' must be a valid IMAP URI (e.g. imap://example.com)

I tried various things and in the end also put actually imap://example.com
in my config file but still it complains.

/HeX

Ryan Grove

unread,
Oct 6, 2009, 12:54:19 AM10/6/09
to la...@googlegroups.com
On Mon, Oct 5, 2009 at 9:50 PM, HeX <hex.i...@googlemail.com> wrote:
> Sadly it will now complain about the 'from' IMAP URI.
>
> $ /var/lib/gems/1.9.0/bin/larch -n
> Config error: 'from' must be a valid IMAP URI (e.g. imap://example.com)
>
> I tried various things and in the end also put actually imap://example.com
> in my config file but still it complains.

Can you post either the exact command line options you're using, or
the contents of your config file (with placeholders instead of any
secret usernames/passwords/hostnames)?

- Ryan

HeX

unread,
Oct 6, 2009, 12:56:21 AM10/6/09
to larch
Just played a bit more only to see that

/var/lib/gems/1.9.0/bin/larch -n -f imaps://mail.example.com

would be recognised but

/var/lib/gems/1.9.0/bin/larch -n -f imaps://mail.example.no

not. So I think there is something fishy going on with domains that
are not out of the .com space.

/HeX
PS: config file is coming up.
Message has been deleted

Ryan Grove

unread,
Oct 6, 2009, 12:31:05 PM10/6/09
to la...@googlegroups.com
On Mon, Oct 5, 2009 at 9:50 PM, HeX <hex.i...@googlemail.com> wrote:
>

Ah, interesting. It looks like Ruby's URI validation is unwisely
trying (and failing) to validate domain names as well. I'll look into
this.

- Ryan

Ryan Grove

unread,
Oct 7, 2009, 1:46:21 AM10/7/09
to la...@googlegroups.com
On Mon, Oct 5, 2009 at 9:56 PM, HeX <hex.i...@googlemail.com> wrote:
>
> Just played a bit more only to see that
>
> /var/lib/gems/1.9.0/bin/larch -n -f imaps://mail.example.com
>
> would be recognised but
>
> /var/lib/gems/1.9.0/bin/larch -n -f imaps://mail.example.no
>
> not. So I think there is something fishy going on with domains that
> are not out of the .com space.

After investigating myself with both Ruby 1.8.7 and 1.9.1, the .no URI
validates just fine. Based on your gem path, it looks like you may be
using Ruby 1.9.0. It's possible there's a bug in the URI lib in that
version of Ruby, but I don't have an easy way to test it. Would you
consider upgrading to 1.9.1?

- Ryan

HeX

unread,
Oct 7, 2009, 2:46:47 AM10/7/09
to la...@googlegroups.com
> After investigating myself with both Ruby 1.8.7 and 1.9.1, the .no URI
> validates just fine. Based on your gem path, it looks like you may be
> using Ruby 1.9.0. It's possible there's a bug in the URI lib in that
> version of Ruby, but I don't have an easy way to test it. Would you
> consider upgrading to 1.9.1?
Well Ubuntu 9.10 will come with a ruby 1.9.1 package. I can test this
again after the upgrade. But I will test it also with 1.8.7 which is
currently shipped with 9.04 in parallel with 1.9.0.

/HeX

HeX

unread,
Oct 7, 2009, 3:06:39 AM10/7/09
to la...@googlegroups.com
Hi Ryan,

just like to confirm that the problem persists also when running under
ryby 1.8.7 (just as you found out yourself).

/HeX

Ryan Grove

unread,
Oct 7, 2009, 12:56:22 PM10/7/09
to la...@googlegroups.com

Actually, it works fine for me on 1.8.7. I'm testing on OS X; I wonder
if this could be a problem specific to Ubuntu's Ruby distribution?

- Ryan

HeX

unread,
Oct 8, 2009, 4:03:41 AM10/8/09
to larch
On Oct 7, 6:56 pm, Ryan Grove <r...@wonko.com> wrote:
>
> Actually, it works fine for me on 1.8.7. I'm testing on OS X; I wonder
> if this could be a problem specific to Ubuntu's Ruby distribution?
>
> - Ryan

Well with 1.8.7 it doesn't accept imaps:// URIs. I.e.,
$ .gem/ruby/1.8/bin/larch -n --from imaps://mail.example.com
Config error: 'to' must be a valid IMAP URI (e.g. imap://example.com)

with imap:// it works. Well the URI is accepted but my mailserver is
actually using imaps so that doesnt help ;)

/HeX

HeX

unread,
Oct 8, 2009, 4:09:18 AM10/8/09
to la...@googlegroups.com
Sorry forget my latest post. In the command line the URIs are accepted
but not if I put the same URIs in the configuration file.

HeX

unread,
Oct 21, 2009, 10:34:26 AM10/21/09
to larch
OK I tested it now with 1.9.1 on Ubuntu Karmic and still the same
result. The URIs are not accepted when fed via a config file. Since
Karmic comes now with the updated version of imapsync (which can be
used with GMAIL) I've fallen back to that solution...sorry.

/HeX

On 7 Okt, 18:56, Ryan Grove <r...@wonko.com> wrote:
Reply all
Reply to author
Forward
0 new messages