This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: mysql.so: Permission denied (Ruby under Cygwin)
> /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/