[MacRuby] #1079: Failed to install pg gem
#1079: Failed to install pg gem --------------------------------+------------------------------------------- Reporter: mr.saint@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 0.8 Component: MacRuby | Keywords: --------------------------------+------------------------------------------- I tried to install pg gem as a root. I use system-wide-configured RVM and MacRuby was installed on it. The result was fail. I attach a file -- Ticket URL: <http://www.macruby.org/trac/ticket/1079> MacRuby <http://macruby.org/>
#1079: Failed to install pg gem --------------------------------+------------------------------------------- Reporter: mr.saint@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: --------------------------------+------------------------------------------- Changes (by lsansonetti@…): * milestone: MacRuby 0.8 => Comment: More C API to implement: {{{ /usr/bin/gcc -I. -I/Library/Frameworks/MacRuby.framework/Versions/0.8/usr/include/ruby-1.9.2 /universal-darwin10.0 -I/Library/Frameworks/MacRuby.framework/Versions/0.8/usr/include/ruby-1.9.2/ruby/backward -I/Library/Frameworks/MacRuby.framework/Versions/0.8/usr/include/ruby-1.9.2 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/opt/local/include/postgresql90 -fno-common -arch x86_64 -fexceptions -fno-common -pipe -O3 -g -Wall -pipe -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after- statement -Wendif-labels -fno-strict-aliasing -fwrapv -arch x86_64 -arch x86_64 -o pg.o -c pg.c 28 pg.c: In function 'pgconn_s_quote_connstr': 29 pg.c:88: warning: assignment discards qualifiers from pointer target type 30 pg.c: In function 'new_pgresult': 31 pg.c:141: warning: implicit declaration of function 'rb_enc_to_index' 32 pg.c: In function 'enc_get_index': 33 pg.c:3723: warning: implicit declaration of function 'ENCODING_GET_INLINED' 34 pg.c:3724: error: 'ENCODING_INLINE_MAX' undeclared (first use in this function) 35 pg.c:3724: error: (Each undeclared identifier is reported only once 36 pg.c:3724: error: for each function it appears in.) 37 pg.c: In function 'pgconn_internal_encoding_set': 38 pg.c:3850: warning: implicit declaration of function 'rb_usascii_str_new_cstr' }}} Strangely, if I recall correctly the pg gem used to be installable. -- Ticket URL: <http://www.macruby.org/trac/ticket/1079#comment:1> MacRuby <http://macruby.org/>
#1079: Failed to install pg gem --------------------------------+------------------------------------------- Reporter: mr.saint@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: --------------------------------+------------------------------------------- Comment(by pierre@…): FYI, same issue here with MacRuby 0.10 (ruby 1.9.2) [universal-darwin10.0, x86_64]: make /usr/bin/gcc -I. -I/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/include/ruby-1.9.2 /universal-darwin10.0 -I/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/include/ruby-1.9.2/ruby/backward -I/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/include/ruby-1.9.2 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/usr/local/Cellar/postgresql/9.0.4/include -fno-common -arch x86_64 -fexceptions -fno-common -pipe -O3 -g -Wall -arch x86_64 -o compat.o -c compat.c /usr/bin/gcc -I. -I/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/include/ruby-1.9.2 /universal-darwin10.0 -I/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/include/ruby-1.9.2/ruby/backward -I/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/include/ruby-1.9.2 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/usr/local/Cellar/postgresql/9.0.4/include -fno-common -arch x86_64 -fexceptions -fno-common -pipe -O3 -g -Wall -arch x86_64 -o pg.o -c pg.c pg.c: In function ‘new_pgresult’: pg.c:118: warning: implicit declaration of function ‘rb_enc_to_index’ pg.c: In function ‘enc_get_index’: pg.c:3739: warning: implicit declaration of function ‘ENCODING_GET_INLINED’ pg.c:3740: error: ‘ENCODING_INLINE_MAX’ undeclared (first use in this function) pg.c:3740: error: (Each undeclared identifier is reported only once pg.c:3740: error: for each function it appears in.) pg.c: In function ‘find_or_create_johab’: pg.c:3759: warning: implicit declaration of function ‘rb_define_dummy_encoding’ pg.c: In function ‘pgconn_internal_encoding_set’: pg.c:3866: warning: implicit declaration of function ‘rb_usascii_str_new_cstr’ make: *** [pg.o] Error 1 -- Ticket URL: <http://www.macruby.org/trac/ticket/1079#comment:2> MacRuby <http://macruby.org/>
#1079: Failed to install pg gem --------------------------------+------------------------------------------- Reporter: mr.saint@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: --------------------------------+------------------------------------------- Comment(by pierre@…): Sorry about that... {{{ make /usr/bin/gcc -I. -I/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/include/ruby-1.9.2 /universal-darwin10.0 -I/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/include/ruby-1.9.2/ruby/backward -I/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/include/ruby-1.9.2 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/usr/local/Cellar/postgresql/9.0.4/include -fno-common -arch x86_64 -fexceptions -fno-common -pipe -O3 -g -Wall -arch x86_64 -o compat.o -c compat.c /usr/bin/gcc -I. -I/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/include/ruby-1.9.2 /universal-darwin10.0 -I/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/include/ruby-1.9.2/ruby/backward -I/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/include/ruby-1.9.2 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/usr/local/Cellar/postgresql/9.0.4/include -fno-common -arch x86_64 -fexceptions -fno-common -pipe -O3 -g -Wall -arch x86_64 -o pg.o -c pg.c pg.c: In function ‘new_pgresult’: pg.c:118: warning: implicit declaration of function ‘rb_enc_to_index’ pg.c: In function ‘enc_get_index’: pg.c:3739: warning: implicit declaration of function ‘ENCODING_GET_INLINED’ pg.c:3740: error: ‘ENCODING_INLINE_MAX’ undeclared (first use in this function) pg.c:3740: error: (Each undeclared identifier is reported only once pg.c:3740: error: for each function it appears in.) pg.c: In function ‘find_or_create_johab’: pg.c:3759: warning: implicit declaration of function ‘rb_define_dummy_encoding’ pg.c: In function ‘pgconn_internal_encoding_set’: pg.c:3866: warning: implicit declaration of function ‘rb_usascii_str_new_cstr’ make: *** [pg.o] Error 1 }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1079#comment:3> MacRuby <http://macruby.org/>
#1079: Failed to install pg gem --------------------------------+------------------------------------------- Reporter: mr.saint@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.11 Component: MacRuby | Resolution: fixed Keywords: | --------------------------------+------------------------------------------- Changes (by watson1978@…): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.11 Comment: Fixed with https://github.com/MacRuby/MacRuby/commit/7bef6537877c2306391f4eff3e39b92fd5... -- Ticket URL: <http://www.macruby.org/trac/ticket/1079#comment:4> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby