Guest User

Untitled

a guest
May 24th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.10 KB | None | 0 0
  1. Macintosh:~ sphericuser$ sudo gem install postgres
  2. Password:
  3. Building native extensions. This could take a while...
  4. ERROR: Error installing postgres:
  5. ERROR: Failed to build gem native extension.
  6.  
  7. /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb install postgres
  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. checking for main() in -lpq... yes
  27. checking for libpq-fe.h... yes
  28. checking for libpq/libpq-fs.h... yes
  29. checking for PQsetClientEncoding()... no
  30. checking for pg_encoding_to_char()... no
  31. checking for PQfreemem()... no
  32. checking for PQserverVersion()... no
  33. checking for PQescapeString()... no
  34. creating Makefile
  35.  
  36. make
  37. 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/opt/local/include/postgresql82 -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -c libpq-compat.c
  38. libpq-compat.c: In function ‘PQescapeBytea’:
  39. libpq-compat.c:104: warning: incompatible implicit declaration of built-in function ‘sprintf’
  40. libpq-compat.c: In function ‘PQescapeBytea’:
  41. libpq-compat.c:104: warning: incompatible implicit declaration of built-in function ‘sprintf’
  42. libpq-compat.c:104: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness
  43. libpq-compat.c: In function ‘PQunescapeBytea’:
  44. libpq-compat.c:158: warning: incompatible implicit declaration of built-in function ‘strlen’
  45. libpq-compat.c:158: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
  46. libpq-compat.c:104: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness
  47. libpq-compat.c: In function ‘PQunescapeBytea’:
  48. libpq-compat.c:158: warning: incompatible implicit declaration of built-in function ‘strlen’
  49. libpq-compat.c:158: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
  50. 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/opt/local/include/postgresql82 -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -c postgres.c
  51. postgres.c:41: error: static declaration of ‘PQserverVersion’ follows non-static declaration
  52. /opt/local/include/postgresql82/libpq-fe.h:262: error: previous declaration of ‘PQserverVersion’ was here
  53. postgres.c:41: error: static declaration of ‘PQserverVersion’ follows non-static declaration
  54. /opt/local/include/postgresql82/libpq-fe.h:262: error: previous declaration of ‘PQserverVersion’ was here
  55. postgres.c: In function ‘Init_postgres’:
  56. postgres.c:2676: error: ‘pgconn_protocol_version’ undeclared (first use in this function)
  57. postgres.c:2676: error: (Each undeclared identifier is reported only once
  58. postgres.c:2676: error: for each function it appears in.)
  59. postgres.c:2677: error: ‘pgconn_server_version’ undeclared (first use in this function)
  60. postgres.c: In function ‘Init_postgres’:
  61. postgres.c:2676: error: ‘pgconn_protocol_version’ undeclared (first use in this function)
  62. postgres.c:2676: error: (Each undeclared identifier is reported only once
  63. postgres.c:2676: error: for each function it appears in.)
  64. postgres.c:2677: error: ‘pgconn_server_version’ undeclared (first use in this function)
  65. lipo: can't open input file: /var/tmp//ccSBpe9q.out (No such file or directory)
  66. make: *** [postgres.o] Error 1
  67.  
  68.  
  69. Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/postgres-0.7.9.2008.01.28 for inspection.
  70. 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