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 14:57:18 +0200 Message-ID: <387E9FC1619C0849BA8934938037E54F0884D7@sv-muc-004.venyon-mail.local> In-Reply-To: <46767F03.48C33276@dessent.net> References: <387E9FC1619C0849BA8934938037E54F0884D2 AT sv-muc-004 DOT venyon-mail DOT local> <46767F03 DOT 48C33276 AT dessent DOT net> From: "Ronald Fischer" To: X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id l5ICvNLe012306 > /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' > > Do you have libmysqlclient installed? Honestly, I don't know. Where is it supposed to be? I did a find /usr/lib -name 'libmysqlclient*' -print but no file matching this name was found. I have installed Ruby via the Cygwin setup program. I have installed MySql for Windows, and running it as a service. Finally, I have installed the Ruby mysql module via gem install -r mysql assuming that "this would do the right thing" anyway. > Have you checked the library > dependencies of mysql.so? I tried to do a ldd mysql.so but ldd was not found on my installation. In which Cygwin package is ldd supposed to be? > If you don't have the libraries > that this DLL > requires it will fail to load. > > Also, it's very suspicious that you'd be using what looks like a > native-compiled module (i.e. MSVCRT) in a Cygwin binary. > That's usually > a recipe for failure. Could well be. I think mysql uses somewhere below a native (C-) interface to Mysql. If *this* is the reason for the problem, I will have to find a different way to access Mysql. Ronald > > Brian > > -- > 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/ > > -- 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/