Guest User

Untitled

a guest
Apr 23rd, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.35 KB | None | 0 0
  1. miskatonic:local root# gem install postgres -- --with-pgsql-include-dir=/opt/local/include/postgresql83 --with-pgsql-lib-dir=/opt/local/lib/postgresql83 --with-pgsql-bin-dir=/opt/local/lib/postgresql83/bin
  2. Building native extensions. This could take a while...
  3. ERROR: Error installing postgres:
  4. ERROR: Failed to build gem native extension.
  5.  
  6. /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb install postgres -- --with-pgsql-include-dir=/opt/local/include/postgresql83 --with-pgsql-lib-dir=/opt/local/lib/postgresql83 --with-pgsql-bin-dir=/opt/local/lib/postgresql83/bin
  7. extconf.rb:73: command not found: pg_config --bindir
  8.  
  9. =========== WARNING ===========
  10.  
  11. You are building this extension on OS X without setting the
  12. ARCHFLAGS environment variable, and PostgreSQL does not appear
  13. to have been built as a universal binary. If you are seeing this
  14. message, that means that the build will probably fail.
  15.  
  16. Try setting the environment variable ARCHFLAGS
  17. to '-arch i386' before building.
  18.  
  19. For example:
  20. (in bash) $ export ARCHFLAGS='-arch i386'
  21. (in tcsh) $ setenv ARCHFLAGS '-arch i386'
  22.  
  23. Then try building again.
  24.  
  25. ===================================
  26. extconf.rb:46: command not found: pg_config --includedir
  27. extconf.rb:53: command not found: pg_config --libdir
  28. checking for main() in -lpq... no
  29. Could not find PostgreSQL build environment (libraries & headers): Makefile not created
  30.  
  31. make
  32. gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -DHAVE_LIBPQ_FE_H -DHAVE_LIBPQ_LIBPQ_FS_H -I/usr/local/pgsql/include -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -c libpq-compat.c
  33. libpq-compat.c: In function 'PQescapeBytea':
  34. libpq-compat.c:104: warning: incompatible implicit declaration of built-in function 'sprintf'
  35. libpq-compat.c:104: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness
  36. libpq-compat.c: In function 'PQunescapeBytea':
  37. libpq-compat.c:158: warning: incompatible implicit declaration of built-in function 'strlen'
  38. libpq-compat.c:158: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
  39. libpq-compat.c: In function 'PQescapeBytea':
  40. libpq-compat.c:104: warning: incompatible implicit declaration of built-in function 'sprintf'
  41. libpq-compat.c:104: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness
  42. libpq-compat.c: In function 'PQunescapeBytea':
  43. libpq-compat.c:158: warning: incompatible implicit declaration of built-in function 'strlen'
  44. libpq-compat.c:158: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
  45. libpq-compat.c:227:22: error: libpq-fe.h: No such file or directory
  46. libpq-compat.c: At top level:
  47. libpq-compat.c:232: error: syntax error before '*' token
  48. libpq-compat.c:232: error: syntax error before '*' token
  49. libpq-compat.c: In function 'PQexecParams_compat':
  50. libpq-compat.c:235: error: 'command' undeclared (first use in this function)
  51. libpq-compat.c:235: error: (Each undeclared identifier is reported only once
  52. libpq-compat.c:235: error: for each function it appears in.)
  53. libpq-compat.c:241: error: 'values' undeclared (first use in this function)
  54. libpq-compat.c:251: error: 'conn' undeclared (first use in this function)
  55. libpq-compat.c:251: warning: return makes pointer from integer without a cast
  56. libpq-compat.c:227:22: error: libpq-fe.h: No such file or directory
  57. libpq-compat.c: At top level:
  58. libpq-compat.c:232: error: syntax error before '*' token
  59. libpq-compat.c:232: error: syntax error before '*' token
  60. libpq-compat.c: In function 'PQexecParams_compat':
  61. libpq-compat.c:235: error: 'command' undeclared (first use in this function)
  62. libpq-compat.c:235: error: (Each undeclared identifier is reported only once
  63. libpq-compat.c:235: error: for each function it appears in.)
  64. libpq-compat.c:241: error: 'values' undeclared (first use in this function)
  65. libpq-compat.c:251: error: 'conn' undeclared (first use in this function)
  66. libpq-compat.c:251: warning: return makes pointer from integer without a cast
  67. lipo: can't open input file: /var/tmp//ccJlBvPk.out (No such file or directory)
  68. make: *** [libpq-compat.o] Error 1
  69.  
  70.  
  71. Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/postgres-0.7.9.2008.01.28 for inspection.
  72. Results logged to /Library/Ruby/Gems/1.8/gems/postgres-0.7.9.2008.01.28/ext/gem_make.out
Add Comment
Please, Sign In to add comment