PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.ruby > Re: ruby-ldap on Windows (built)
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Re: ruby-ldap on Windows (built)

Réponse
 
LinkBack Outils de la discussion
Vieux 13/03/2008, 13h57   #1
Eduardo Dias
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: ruby-ldap on Windows (built)

Chris Scharf wrote:
> Wilson Bilkovich wrote:
>> On 4/18/06, Chris Scharf <scharfie@gmail.com> wrote:
>>> on the mswin32 build, please try the pre-built package:
>>> I believe these are the proper locations. Hopefully this s someone
>>> out there :-)
>>>
>>> Note: This was build using 0.9.4 of ruby-ldap on WinXP SP2.
>>>

>>
>> I would LOVE to know how you managed this. I struck out hard on
>> several occasions, and I'd like to learn from my mistakes.
>>
>> --Wilson.

>
> Well, the first step was to download the latest Platform SDK
> (http://www.microsoft.com/downloads/d...DisplayLang=en).
> The reason is that I have MSVC C++ 6.0, and apparently that distribution
> has a known issue with the wldap32.lib library. After downloading the
> SDK, I grabbed the latest ruby-ldap source from sourceforge.
>
> Now, the ruby-ldap source has a win directory, which has a wldap32.def
> file, and this is used to build the wldap32.lib file. However, I think
> this .def creates the BAD .lib that comes with MSVC 6, so what I did was
> drop in the one from the platform SDK.
>
> Now, the tricky part: modifiying the source. I had to open the
> sslconn.c file, and change a few things. The first is that the
> rb_ldap_sslconn_bind_f function (around line 260) is missing an
> argument. The function definition should be:
>
> VALUE rb_ldap_sslconn_bind_f(int argc, VALUE argv[], VALUE self,
> VALUE (*rb_ldap_sslconn_bind_func) (int, VALUE, VALUE))
>
> The two functions that follow (rb_ldap_sslconn_bind_s and
> rb_ldap_sslconn_simple_bind_s) make calls to a function called
>
> rb_ldap_sslconn_bind_func
>
> However, it should be
>
> rb_ldap_sslconn_bind_f
>
>
> Next - the SDK includes special command prompt shortcuts that set up the
> paths and all that, so I used the one for my machine (Win XP 32-bit),
> and went to the directory where I had extracted the source.
>
> Then:
>
> ruby extconf.rb --with-wldap32
> nmake
> nmake install
>
> I believe the Platform SDK itself should be sufficient to build
> everything - the real trick is getting that .lib from the SDK and
> dropping it in the \win directory of the extracted source, and then
> changing the source code.




I'm getting the following error when i try to install ruby-ldap-0.9.7 in
Windows Vista.

extconf.rb:162:in ``': No such file or directory - lib
/def:./win/wldap32.def /o
ut:./win/wldap32.lib (Errno::ENOENT)
from extconf.rb:162

Someone can me?



--
Posted via http://www.ruby-forum.com/.

  Réponse avec citation
Vieux 13/03/2008, 15h13   #2
Rcmn 73
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: ruby-ldap on Windows (built)


> I'm getting the following error when i try to install ruby-ldap-0.9.7 in
> Windows Vista.
>
> extconf.rb:162:in ``': No such file or directory - lib
> /def:./win/wldap32.def /o
> ut:./win/wldap32.lib (Errno::ENOENT)
> from extconf.rb:162
>
> Someone can me?


But who use Windows Vista ????
sorry --> []
--
Posted via http://www.ruby-forum.com/.

  Réponse avec citation
Vieux 13/03/2008, 15h26   #3
Mateusz Tybura
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: ruby-ldap on Windows (built)

[Note: parts of this message were removed to make it a legal post.]

It say's that file you want open or do something else don't exist. Maybe you
just do some mistake in path to this file or you don't have permissions to
access.

2008/3/13, Rcmn 73 <rcmn73@gmail.com>:
>
>
> > I'm getting the following error when i try to install ruby-ldap-0.9.7 in
> > Windows Vista.
> >
> > extconf.rb:162:in ``': No such file or directory - lib
> > /def:./win/wldap32.def /o
> > ut:./win/wldap32.lib (Errno::ENOENT)
> > from extconf.rb:162
> >
> > Someone can me?

>
>
> But who use Windows Vista ????
> sorry --> []
>
> --
> Posted via http://www.ruby-forum.com/.
>
>


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 19h57.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11196 seconds with 11 queries