From: Sergio Ruiz Date: 2007-09-29T03:49:46+09:00 Subject: Re: mac - hpricot problems > > Say, would you mind sending me your mkmf.log from that first directory, > Sergio? It should be right in `ext/hpricot_scan/` and it would also > be nice to see the output of `ruby -rrbconfig -e "p Config::CONFIG"` as > well. > here you go: have_library: checking for main() in -lc... -------------------- yes "gcc -o conftest -I. -I/usr/local/lib/ruby/1.8/powerpc-darwin8.10.0 -I. -g -O2 -fno-common -pipe -fno-common conftest.c -L"/usr/local/lib" -lruby-static -lc -lpthread -ldl -lobjc " checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { void ((*volatile p)()); p = (void ((*)()))main; return 0; } /* end */ -------------------- this is really messy.. ruby -rrbconfig -e "p Config::CONFIG"{"sitedir"=>"/usr/local/lib/ruby/site_ruby", "MAKEFILES"=>"Makefile", "LIBRUBY"=>"libruby.1.8.6.dylib", "MAKEDIRS"=>"mkdir -p", "PACKAGE_VERSION"=>"", "GREP"=>"/usr/bin/grep", "prefix"=>"/usr/local", "COMMON_LIBS"=>"", "rubylibdir"=>"/usr/local/lib/ruby/1.8", "target"=>"powerpc-apple-darwin8.10.0", "DLLWRAP"=>"", "AR"=>"ar", "target_alias"=>"", "MANTYPE"=>"doc", "docdir"=>"/usr/local/share/doc/$(PACKAGE)", "RDOCTARGET"=>"", "dvidir"=>"/usr/local/share/doc/$(PACKAGE)", "AS"=>"as", "GNU_LD"=>"no", "MAINLIBS"=>"", "WINDRES"=>"", "XCFLAGS"=>" -DRUBY_EXPORT", "datarootdir"=>"/usr/local/share", "RUBY_INSTALL_NAME"=>"ruby", "LN_S"=>"ln -s", "archdir"=>"/usr/local/lib/ruby/1.8/powerpc-darwin8.10.0", "LINK_SO"=>"", "MINIRUBY"=>"./miniruby", "DLDLIBS"=>"", "EXEEXT"=>"", "target_vendor"=>"apple", "RUNRUBY"=>"./miniruby $(srcdir)/runruby.rb --extout=.ext --", "DESTDIR"=>"", "sbindir"=>"/usr/local/sbin", "LIBPATHENV"=>"DYLD_LIBRARY_PATH", "sitearch"=>"powerpc-darwin8.10.0", "psdir"=>"/usr/local/share/doc/$(PACKAGE)", "host_cpu"=>"powerpc", "DLEXT2"=>"", "LIBS"=>"-lpthread -ldl -lobjc ", "localedir"=>"/usr/local/share/locale", "rubyw_install_name"=>"", "EXTOUT"=>".ext", "ECHO_C"=>"", "OBJDUMP"=>"", "arch"=>"powerpc-darwin8.10.0", "MAJOR"=>"1", "ruby_version"=>"1.8", "CC"=>"gcc", "EGREP"=>"/usr/bin/grep -E", "COMMON_HEADERS"=>"", "COMMON_MACROS"=>"", "PACKAGE_TARNAME"=>"", "build_cpu"=>"powerpc", "build_vendor"=>"apple", "host_alias"=>"", "RANLIB"=>"ranlib", "LDSHARED"=>"cc -dynamic -bundle -undefined suppress -flat_namespace", "LIBRUBYARG_SHARED"=>"-lruby", "YFLAGS"=>"", "htmldir"=>"/usr/local/share/doc/$(PACKAGE)", "MINOR"=>"8", "INSTALL_SCRIPT"=>"/usr/bin/install -c", "EXPORT_PREFIX"=>"", "LIBRUBY_ALIASES"=>"libruby.1.8.dylib libruby.dylib", "LDFLAGS"=>"", "datadir"=>"/usr/local/share", "NM"=>"", "includedir"=>"/usr/local/include", "infodir"=>"/usr/local/share/info", "host_os"=>"darwin8.10.0", "build"=>"powerpc-apple-darwin8.10.0", "host"=>"powerpc-apple-darwin8.10.0", "INSTALL_DATA"=>"/usr/bin/install -c -m 644", "build_os"=>"darwin8.10.0", "DLDFLAGS"=>"", "ruby_install_name"=>"ruby", "DLEXT"=>"bundle", "LIBRUBY_SO"=>"libruby.1.8.6.dylib", "TEENY"=>"6", "CPP"=>"gcc -E", "ALLOCA"=>"$(LIBOBJDIR)alloca.o", "sysconfdir"=>"/usr/local/etc", "exec_prefix"=>"/usr/local", "PATH_SEPARATOR"=>":", "LIBEXT"=>"a", "mandir"=>"/usr/local/share/man", "libdir"=>"/usr/local/lib", "build_alias"=>"", "target_cpu"=>"powerpc", "ECHO_N"=>"-n", "sharedstatedir"=>"/usr/local/com", "YACC"=>"bison -y", "configure_args"=>" '--prefix=/usr/local' '--enable-pthread' '--with-readline-dir=/usr/local' '--enable-shared'", "SOLIBS"=>"", "host_vendor"=>"apple", "TRY_LINK"=>"", "PACKAGE_STRING"=>"", "target_os"=>"darwin8.10.0", "oldincludedir"=>"/usr/include", "CP"=>"cp", "SET_MAKE"=>"", "LIBRUBYARG_STATIC"=>"-lruby-static", "LIBRUBYARG"=>"-lruby", "RUBYW_INSTALL_NAME"=>"", "PACKAGE_NAME"=>"", "pdfdir"=>"/usr/local/share/doc/$(PACKAGE)", "EXTSTATIC"=>"", "ECHO_T"=>"", "RPATHFLAG"=>"", "SHELL"=>"/bin/sh", "STATIC"=>"", "ASFLAGS"=>"", "INSTALL"=>"/usr/bin/install -c", "sitearchdir"=>"/usr/local/lib/ruby/site_ruby/1.8/powerpc-darwin8.10.0", "STRIP"=>"strip -A -n", "ARCHFILE"=>"", "LIBRUBY_DLDFLAGS"=>"-install_name /usr/local/lib/libruby.dylib -current_version 1.8.6 -compatibility_version 1.8", "OBJEXT"=>"o", "XLDFLAGS"=>" -L.", "LIBRUBY_LDSHARED"=>"cc -dynamiclib -undefined suppress -flat_namespace", "ENABLE_SHARED"=>"yes", "RM"=>"rm -f", "CCDLFLAGS"=>" -fno-common", "setup"=>"Setup", "CPPOUTFILE"=>"-o conftest.i", "topdir"=>"/usr/local/lib/ruby/1.8/powerpc-darwin8.10.0", "RUBY_SO_NAME"=>"ruby", "CFLAGS"=>"-g -O2 -fno-common -pipe -fno-common", "localstatedir"=>"/usr/local/var", "LIBPATHFLAG"=>" -L\"%s\"", "bindir"=>"/usr/local/bin", "sitelibdir"=>"/usr/local/lib/ruby/site_ruby/1.8", "NROFF"=>"/usr/bin/nroff", "CPPFLAGS"=>"", "INSTALL_PROGRAM"=>"/usr/bin/install -c", "PACKAGE_BUGREPORT"=>"", "libexecdir"=>"/usr/local/libexec", "OUTFLAG"=>"-o ", "LIBRUBY_A"=>"libruby-static.a", "PREP"=>"miniruby", "ARCH_FLAG"=>""}\\ > Maybe try a plain setup.rb installer for Hpricot? > trying this next.. -- Posted via http://www.ruby-forum.com/.