Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion using pg and mysql gems on jruby-head?

Received: by 10.50.46.233 with SMTP id y9mr1997369igm.4.1340392735115;
        Fri, 22 Jun 2012 12:18:55 -0700 (PDT)
X-BeenThere: jruby-users@googlegroups.com
Received: by 10.231.62.136 with SMTP id x8ls1791009ibh.7.gmail; Fri, 22 Jun
 2012 12:18:55 -0700 (PDT)
Received: by 10.42.147.195 with SMTP id o3mr836530icv.4.1340392734956;
        Fri, 22 Jun 2012 12:18:54 -0700 (PDT)
Received: by 10.42.147.195 with SMTP id o3mr836529icv.4.1340392734932;
        Fri, 22 Jun 2012 12:18:54 -0700 (PDT)
Return-Path: <user-return-17695-jruby-users-garchive-14719=googlegroups....@jruby.codehaus.org>
Received: from mail.codehaus.org (mail.codehaus.org. [63.246.24.167])
        by gmr-mx.google.com with ESMTPS id bg10si67833igc.3.2012.06.22.12.18.54
        (version=TLSv1/SSLv3 cipher=OTHER);
        Fri, 22 Jun 2012 12:18:54 -0700 (PDT)
Received-SPF: pass (google.com: domain of user-return-17695-jruby-users-garchive-14719=googlegroups....@jruby.codehaus.org designates 63.246.24.167 as permitted sender) client-ip=63.246.24.167;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of user-return-17695-jruby-users-garchive-14719=googlegroups....@jruby.codehaus.org designates 63.246.24.167 as permitted sender) smtp.mail=user-return-17695-jruby-users-garchive-14719=googlegroups....@jruby.codehaus.org; dkim=hardfail header...@gmail.com
Received: (qmail 11338 invoked by uid 89); 22 Jun 2012 19:18:39 -0000
Mailing-List: contact user-h...@jruby.codehaus.org; run by ezmlm
Precedence: bulk
List-Post: <http://xircles.codehaus.org/manage_email>
List-Help: <http://xircles.codehaus.org/manage_email>
List-Unsubscribe: <http://xircles.codehaus.org/manage_email>
List-Subscribe: <http://xircles.codehaus.org/manage_email>
List-Id: <user.jruby.codehaus.org>
Reply-to: u...@jruby.codehaus.org
Delivered-To: mailing list u...@jruby.codehaus.org
Received: (qmail 11332 invoked by uid 89); 22 Jun 2012 19:18:39 -0000
Received-SPF: pass (63-246-24-167.contegix.com: SPF record at _spf.google.com designates 209.85.161.182 as permitted sender)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:sender:date:x-google-sender-auth:message-id:subject
         :from:to:content-type;
        bh=TLSxsGcak+BbwgfaPJIvNeE5foKTvA7wRTiXLR+KeZw=;
        b=nfXrqRqGczxmdDgB39uhUhBN3Hrf5nMLKIDYn8k4V+Zt6/MHLVAqpD6xZ5+VeSMLYP
         /mR435bTZe4g5ErbZWqwQkKdVY70cqDxKfk1V8VsbAQ4XN7H1QHneBHpM4gzIbQXaVvR
         7jUqJuXl8bjC9Y3KGVWpBtqBHYUQjkXUL5m2ftGZj34htyeGGmhzkAQyK6UZa3BGdUfc
         GPz2nYyDIPnXabWMLrMuGrXGnD8R8H09ftnOTs72JT2nWSi6kEZ21WwkEPv4qx9CAfl6
         wXuZHtc5NqxMu23v2qEQQ63ArhKoDrF9Sh2FxvIWrGaAaq0ugQ9LwAkV+f2fJr4vlPGz
         FCAA==
MIME-Version: 1.0
Sender: dfran...@gmail.com
Date: Fri, 22 Jun 2012 14:18:38 -0500
Message-ID: <CA+riwVTXaLwnk2Wh0Di=byQsKUgBB4QfwHRx49XZuNx-GFK...@mail.gmail.com>
From: Dan F <dfranko...@gmail.com>
To: u...@jruby.codehaus.org
Content-Type: multipart/alternative; boundary=20cf303b4375da67b904c3147fbe
Subject: [jruby-user] using pg and mysql gems on jruby-head?

--20cf303b4375da67b904c3147fbe
Content-Type: text/plain; charset=ISO-8859-1

I filed https://github.com/jruby/jruby/issues/214. enebo said, "Try
jruby-1.7.0.pre1". Okay. I am looking to see if jruby is faster for my
CPU-bound long-running process (15 minutes for the short version).

I installed Java 7. I did "rvm install jruby-head". I tried "bundle" to
install my gems, and it barfed on "mysql" and "pg" (at least) because they
are native extensions, even after I threw caution to the wind and put
"cext.enabled=true" in my .jrubyrc. However, I need to access postgres and
mysql. Google revealed sometimes there are alternative gems for jruby, also
suggested plans for supporting native extensions in newer versions of
jruby, but I can't find details on either.

What is the state of this? Can I install pg and mysql gems somehow, must I
abandon attempts at jruby, or is there hidden option c? Please don't ask me
to significantly rewrite my source tree (e.g., change require statements),
especially if it leaves it ruby-incompatible.

Thanks for your attention.

--20cf303b4375da67b904c3147fbe
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I filed=A0<a href=3D"https://github.com/jruby/jruby/issues/214">https://git=
hub.com/jruby/jruby/issues/214</a>. enebo said, &quot;Try jruby-1.7.0.pre1&=
quot;. Okay. I am looking to see if jruby is faster for my CPU-bound long-r=
unning process (15 minutes for the short version).<div>
<div><br><div>I installed Java 7. I did &quot;rvm install jruby-head&quot;.=
 I tried &quot;bundle&quot; to install my gems, and it barfed on &quot;mysq=
l&quot; and &quot;pg&quot; (at least) because they are native extensions, e=
ven after I threw caution to the wind and put &quot;cext.enabled=3Dtrue&quo=
t; in my .jrubyrc. However, I need to access postgres and mysql. Google rev=
ealed sometimes there are alternative gems for jruby, also suggested plans =
for supporting native extensions in newer versions of jruby, but I can&#39;=
t find details on either.</div>
</div></div><div><br></div><div>What is the state of this? Can I install pg=
 and mysql gems somehow, must I abandon attempts at jruby, or is there hidd=
en option c? Please don&#39;t ask me to significantly rewrite my source tre=
e (e.g., change require statements), especially if it leaves it ruby-incomp=
atible.</div>
<div><br></div><div>Thanks for your attention.</div><div><br></div>

--20cf303b4375da67b904c3147fbe--