X-Spam-Check-By: sourceware.org
Content-class: urn:content-classes:message
Subject: RE: mysql.so: Permission denied (Ruby under Cygwin)
MIME-Version: 1.0
Content-Type: text/plain; 	charset="us-ascii"
Date: Mon, 18 Jun 2007 15:14:56 +0200
Message-ID: <387E9FC1619C0849BA8934938037E54F0884DC@sv-muc-004.venyon-mail.local>
In-Reply-To: <20070618125654.GL4179@calimero.vinschen.de>
References: <387E9FC1619C0849BA8934938037E54F0884D2@sv-muc-004.venyon-mail.local> <20070618125654.GL4179@calimero.vinschen.de>
From: "Ronald Fischer" <ronald.fischer@venyon.com>
To: <cygwin@cygwin.com>, <ruby-talk@ruby-lang.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id l5IDF8KP018645

> >   require 'mysql'
> > 
> > raises the following error message:
> > 
> > 
> /usr/lib/ruby/gems/1.8/gems/mysql-2.7.3-mswin32/ext/mysql.so: 
> Permission
> > denied - 
> /usr/lib/ruby/gems/1.8/gems/mysql-2.7.3-mswin32/ext/mysql.so
> > (LoadError)
> >         from
> > 
> /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `require'
> > 
> > The access rights to mysql.so are as follows:
> > 
> > 
> > -rw-r--r-- 1 rfischer mkgroup-l-d 81984 May 21 18:08
> > /usr/lib/ruby/gems/1.8/gems/mysql-2.7.3-mswin32/ext/mysql.so
> > 
> > 
> > Using the mysql module with Ruby on Windows outside Cygwin 
> works well.
> > What could be the reason for this problem?
> 
> The first problem are the access rights.  Shared libs must have the
> execute bits set.  chmod +x mysql.so will help.

This helped a lot! 

> 
> The second problem is that this shared lib has been created for the
> native win32 version of ruby, not for the Cygwin version.  It *might*
> work together, but it's neither guaranteed, nor supported.

... which might explain the new behaviour, that the programs starts to
run, but at the end gets a

  ~/thome/importer_tests $ onereq_oneappl.rb
  /usr/lib/ruby/gems/1.8/gems/mysql-2.7.3-mswin32/ext/mysql.so: [BUG]
Segmentation fault
  ruby 1.8.6 (2007-03-13) [i386-cygwin]

I see that I am here still on experimental ground. Maybe the idea of
using mysql from within
Cygwin-Ruby was really not so good in the first place....

Ronald
-- 
Ronald Fischer <ronald.fischer@venyon.com>
Phone: +49-89-452133-162
 

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


