Giter VIP home page Giter VIP logo

Comments (5)

ged avatar ged commented on August 22, 2024

Original comment by Michael Granger (Bitbucket: ged, GitHub: ged).


Thanks for the report; I'll look into it!

from ruby-pg.

ged avatar ged commented on August 22, 2024

Original comment by chaostheory (Bitbucket: chaostheory, GitHub: chaostheory).


Thanks for looking at this, but I forgot to reload my profile with an updated path to postgres's bin. Here are the new messages, but the result is largely the same.

console

ERROR: Error installing pg:
ERROR: Failed to build gem native extension.
/Users/hello/.rvm/rubies/ruby-1.9.2-p0/bin/ruby extconf.rb
checking for pg_config... yes
MacOS X build: fixing architecture flags:
using the value in ARCHFLAGS environment variable ("-arch x86_64").
checking for libpq-fe.h... *** extconf.rb failed ***

log

find_executable: checking for pg_config... -------------------- yes


"gcc -o conftest -I/Users/hello/.rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1/i386-darwin10.4.0 -I/Users/hello/.rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1/ruby/backward -I/Users/hello/.rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/opt/local/include/postgresql84 -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long -fno-common -pipe -arch x86_64 conftest.c -L. -L/Users/hello/.rvm/rubies/ruby-1.9.2-p0/lib -L. -L/opt/local/lib/postgresql84 -arch x86_64 -lruby.1.9.1-static -lpthread -ldl -lobjc "
In file included from /Users/hello/.rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1/ruby.h:32,
from conftest.c:1:
/Users/hello/.rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1/ruby/ruby.h:108: error: size of array ‘ruby_check_sizeof_long’ is negative
/Users/hello/.rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1/ruby/ruby.h:112: error: size of array ‘ruby_check_sizeof_voidp’ is negative
In file included from /Users/hello/.rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1/ruby/intern.h:29,
from /Users/hello/.rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1/ruby/ruby.h:1327,
from /Users/hello/.rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1/ruby.h:32,
from conftest.c:1:
/Users/hello/.rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1/ruby/st.h:69: error: size of array ‘st_check_for_sizeof_st_index_t’ is negative
checked program was:
/* begin /
1: #include "ruby.h"
2:
3: int main() {return 0;}
/
end */

from ruby-pg.

ged avatar ged commented on August 22, 2024

Original comment by chaostheory (Bitbucket: chaostheory, GitHub: chaostheory).


I see something weird:

BINDIR = /opt/local/lib/postgresql84/bin

DOCDIR = /opt/local/share/doc/postgresql

HTMLDIR = /opt/local/share/doc/postgresql

INCLUDEDIR = /opt/local/include/postgresql84

PKGINCLUDEDIR = /opt/local/include/postgresql84

INCLUDEDIR-SERVER = /opt/local/include/postgresql84/server

LIBDIR = /opt/local/lib/postgresql84

PKGLIBDIR = /opt/local/lib/postgresql84

LOCALEDIR = /opt/local/share/locale

MANDIR = /opt/local/share/man

SHAREDIR = /opt/local/share/postgresql84

SYSCONFDIR = /opt/local/etc/postgresql84

PGXS = /opt/local/lib/postgresql84/pgxs/src/makefiles/pgxs.mk

CONFIGURE = '--prefix=/opt/local' '--sysconfdir=/opt/local/etc/postgresql84' '--bindir=/opt/local/lib/postgresql84/bin' '--libdir=/opt/local/lib/postgresql84' '--includedir=/opt/local/include/postgresql84' '--datadir=/opt/local/share/postgresql84' '--mandir=/opt/local/share/man' '--without-docdir' '--with-includes=/opt/local/include' '--with-libraries=/opt/local/lib' '--with-openssl' '--with-bonjour' '--with-readline' '--with-zlib' '--with-libxml' '--with-libxslt' '--enable-thread-safety' '--enable-integer-datetimes' '--with-ossp-uuid' 'CC=/usr/bin/gcc-4.2' 'CFLAGS=-pipe -O2 -arch i386' 'LDFLAGS=-L/opt/local/lib -arch i386'
'CPPFLAGS=-I/opt/local/include -I/opt/local/include/ossp'

CC = /usr/bin/gcc-4.2 -no-cpp-precomp

CPPFLAGS = -I/opt/local/include -I/opt/local/include/ossp -I/opt/local/include/libxml2 -I/opt/local/include

CFLAGS = -pipe -O2 -arch i386 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv

CFLAGS_SL =

LDFLAGS = -L/opt/local/lib -arch i386 -L/opt/local/lib -L/opt/local/lib -Wl,-dead_strip_dylibs

LDFLAGS_SL =

LIBS = -lpgport -lxslt -lxml2 -lssl -lcrypto -lz -lreadline -lm

VERSION = PostgreSQL 8.4.4

from ruby-pg.

ged avatar ged commented on August 22, 2024

Original comment by chaostheory (Bitbucket: chaostheory, GitHub: chaostheory).


Is it normal for macports to install 32bit versions of stuff on Snow Leopard?

I changed the ARCHTYPE to -arch i386 and it installed

from ruby-pg.

ged avatar ged commented on August 22, 2024

Original comment by chaostheory (Bitbucket: chaostheory, GitHub: chaostheory).


Much appreciated that you took the time to look at it.

from ruby-pg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.