delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/06/18/08:57:21

X-Spam-Check-By: sourceware.org
Date: Mon, 18 Jun 2007 14:56:54 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com, ruby-talk AT ruby-lang DOT org
Subject: Re: mysql.so: Permission denied (Ruby under Cygwin)
Message-ID: <20070618125654.GL4179@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com, ruby-talk AT ruby-lang DOT org
Mail-Followup-To: cygwin AT cygwin DOT com, ruby-talk AT ruby-lang DOT org
References: <387E9FC1619C0849BA8934938037E54F0884D2 AT sv-muc-004 DOT venyon-mail DOT local>
Mime-Version: 1.0
In-Reply-To: <387E9FC1619C0849BA8934938037E54F0884D2@sv-muc-004.venyon-mail.local>
User-Agent: Mutt/1.4.2.2i
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Jun 18 14:15, Ronald Fischer wrote:
> [this message is crossposted to the Cygwin- and RubyTalk mailing lists].
> 
> Running Ruby 1.8.6 under Cygwin, i.e.
> 
> 
>  $ /usr/bin/ruby --version
>  ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-cygwin]
> 
> the statement
> 
>   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.

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.

The third problem is that right now there's no Cygwin ruby-gems package
in the cygwin net distribution.  Volunteers welcome.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019