bearded / ruby-ldap

Ruby/LDAP is an extension library for Ruby. It provides the interface to some LDAP libraries (e.g. OpenLDAP, Netscape SDK and Active Directory). The common API for application development is described in RFC1823 and is supported by Ruby/LDAP.
http://rubyforge.org/projects/ruby-ldap/
Other
66 stars 35 forks source link

Cant install on Windows #11

Closed f0086 closed 12 years ago

f0086 commented 12 years ago

I tried to install ruby-ldap (version 0.9.12) and get this error message:

[...]
make install
/usr/bin/install -c -m 0755 ldap.so /usr/lib/ruby/gems/1.8/gems/ruby-ldap-0.9.12/lib
/usr/bin/install -c -m 644 ./lib/ldap/control.rb /usr/lib/ruby/gems/1.8/gems/ruby-ldap-0.9.12/lib/ldap
/usr/bin/install: `./lib/ldap/control.rb' and `/usr/lib/ruby/gems/1.8/gems/ruby-ldap-0.9.12/lib/ldap/control.rb' are the same file
Makefile:130: recipe for target `/usr/lib/ruby/gems/1.8/gems/ruby-ldap-0.9.12/lib/ldap/control.rb' failed
make: *** [/usr/lib/ruby/gems/1.8/gems/ruby-ldap-0.9.12/lib/ldap/control.rb] Error 1

Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/ruby-ldap-0.9.12 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/ruby-ldap-0.9.12/./gem_make.out

I use Windows an CygWin :( Are there some paths wrong? Other gems can install smoothly.

ghost commented 12 years ago

@aaronmueller, looks like you trying to install gem after failed attempt. try to remove ruby-ldap from gems folder

rm -rf /usr/lib/ruby/gems/1.8/gems/ruby-ldap-0.9.12
rm -rf /usr/lib/ruby/gems/1.8/cache/ruby-ldap-0.9.12.gem

(you may also need to re-open CygWin terminal)

and then run

~
$ gem install ruby-ldap
cygwin warning:
  MS-DOS style path detected: C:\ProgramData/gemrc
  Preferred POSIX equivalent is: /cygdrive/c/ProgramData/gemrc
  CYGWIN environment variable option "nodosfilewarning" turns off this warning.
  Consult the user's guide for more details about POSIX paths:
    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
Fetching: ruby-ldap-0.9.12.gem (100%)
Building native extensions.  This could take a while...
Successfully installed ruby-ldap-0.9.12
1 gem installed
Installing ri documentation for ruby-ldap-0.9.12...
Installing RDoc documentation for ruby-ldap-0.9.12...

it works for me

luizluca commented 12 years ago

I just got the same problem. It seems to be some race-condition problem. Sometimes it works for me whether sometimes it doesn't. Just a matter of rerunning it.

However, for some systems, I never get the correct "timing" and I never build. How can I help debug it?