>I am trying to compile ruby-1.6.3 in OSX, and at the end of the make I >get: > >compiling curses >cc -g -O2 -pipe -no-precomp -I/Applications/ruby-1.6.3 >-I/Applications/ruby-1.6.3 -I/usr/local/include -DHAVE_WDELETELN -c >curses.c >curses.c: In function `window_maxy': >curses.c:581: structure has no member named `_maxy' >curses.c: In function `window_maxx': >curses.c:602: structure has no member named `_maxx' >curses.c: In function `window_begy': >curses.c:620: structure has no member named `_begy' >curses.c: In function `window_begx': >curses.c:637: structure has no member named `_begx' >make[1]: *** [curses.o] Error 1 > >Any suggestions? My OSX experience is limited. > >[But no problems on my OpenBSD box, so began learning Ruby last night! > :-) ] > >Many thanks in advance! > > >-- Nathan Wilkes > >brennansdad / mac.com Hi I have filed this in the bug database. http://www.ruby-lang.org/cgi-bin/ruby-bugs/incoming?id=136 This is the text from my posting in the database. It is fairly simple to fix this. See below. If I build Ruby on Mac OS X in this way % ./configure % make I get the following message cc -g -O2 -pipe -no-precomp -I/Users/johan/Desktop/ruby-1.6.3 -I/Users/johan/Desktop/ruby-1.6.3 -I/usr/local/include -DHAVE_WDELETELN -c curses.c curses.c: In function `window_maxy': curses.c:581: structure has no member named `_maxy' curses.c: In function `window_maxx': curses.c:602: structure has no member named `_maxx' curses.c: In function `window_begy': curses.c:620: structure has no member named `_begy' curses.c: In function `window_begx': curses.c:637: structure has no member named `_begx' make[1]: *** [curses.o] Error 1 This is beacuse in the file ext/curses/curses.c There is a few lines to check which version of curses is used and on Mac OS X which is partly at least a BSD unix variant # if (defined(__bsdi__) || defined(__NetBSD__)) && !defined(_maxx) # define _maxx maxx # endif # if (defined(__bsdi__) || defined(__NetBSD__)) && !defined(_maxy) # define _maxy maxy # endif # if (defined(__bsdi__) || defined(__NetBSD__)) && !defined(_begx) # define _begx begx # endif # if (defined(__bsdi__) || defined(__NetBSD__)) && !defined(_begy) # define _begy begy # endif These lines should check if it is Mac OS X which is being compiled. If I just add the define-macros after this segment will ruby compile fine under Mac OS X. Like this: # define _maxx maxx # define _maxy maxy # define _begx begx # define _begy begy -- Johan Dahl, Research Engineer Department of Linguistics and Phonetics, Lund University Address: Helgonabacken 12, 223 62 Lund, SWEDEN Tel: +46-(0)46-2228443 Fax: +46-(0)46-2224210 E-mail: mailto:Johan.Dahl / ling.lu.se WWW: http://www.ling.lu.se/persons/Johan/