From: Xeno Campanoli Date: 2009-12-30T03:39:32+09:00 Subject: Re: ERRORs trying to install ruby-ldap on CentOS Eric Wong wrote: > Xeno Campanoli wrote: >> misc.c: In function ‘rb_ldap_get_apiinfo’: >> misc.c:56: warning: implicit declaration of function ‘RARRAY_LEN’ >> misc.c:60: warning: implicit declaration of function ‘RARRAY_PTR’ >> misc.c:60: error: subscripted value is neither array nor pointer >> misc.c:61: warning: implicit declaration of function ‘RSTRING_LEN’ >> misc.c:61: warning: implicit declaration of function ‘RSTRING_PTR’ > > Hi Xeno, it looks like the code was ported to work with Ruby 1.9 and > didn't bother maintaining 1.8.5 (or 1.8.6?) compatibility. > > What happens when you add the following to misc.c? > > #ifndef RSTRING_PTR > # define RSTRING_PTR(s) (RSTRING(s)->ptr) > #endif > #ifndef RSTRING_LEN > # define RSTRING_LEN(s) (RSTRING(s)->len) > #endif > I'm trying to find the gem sequence to extract it to a directory and then install the local directory. No such thing is mentioned in the documentation I am reading. Can you help me with that? -- "It's the preponderance, stupid!" - Professor Stephen Schneider, IPCC member