Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
Last login: Sat Dec 22 15:47:47 on ttys001 Odysseus:~ kev$ sudo gem install postgres Building native extensions. This could take a while... ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError) ERROR: Failed to build gem native extension. ruby extconf.rb install postgres checking for main() in -lpq... yes checking for libpq-fe.h... yes checking for libpq/libpq-fs.h... yes checking for PQsetClientEncoding()... no checking for PQfreemem()... no checking for PQescapeStringConn()... no checking for PQprepare()... no checking for PQescapeString()... no checking for PQexecParams()... no checking for PQconnectionUsedPassword()... no checking for PQisthreadsafe()... no checking for PQnparams()... no checking for PQparamtype()... no checking for PQsendDescribePrepared()... no checking for PQsendDescribePortal()... no checking for PQencryptPassword()... no checking for PQdescribePrepared()... no checking for PQdescribePortal()... no checking for lo_create()... no checking for lo_truncate()... no checking for pg_encoding_to_char()... no creating Makefile make 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 -Wall -Wmissing-prototypes -c compat.c compat.c: In function ‘PQsetClientEncoding’: compat.c:20: error: redefinition of parameter ‘PQdescribePrepared’ compat.h:67: error: previous definition of ‘PQdescribePrepared’ was here compat.c:20: error: syntax error before ‘{’ token In file included from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/re.h:19, from compat.c:150: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/regex.h:115: error: storage class specified for parameter ‘ruby_register_info_type’ /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/regex.h:148: error: syntax error before ‘ruby_register_info_type’ /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/regex.h:148: warning: no semicolon at end of struct or union /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/regex.h:151: error: syntax error before ‘}’ token /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/regex.h:153: error: storage class specified for parameter ‘regex_t’ /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/regex.h:171: warning: empty declaration /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/regex.h:174: error: storage class specified for parameter ‘regoff_t’ /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/regex.h:181: error: syntax error before ‘regoff_t’ /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/regex.h:181: warning: no semicolon at end of struct or union /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/regex.h:187: error: storage class specified for parameter ‘ruby_re_compile_pattern’ /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/regex.h:190: error: storage class specified for parameter ‘ruby_re_adjust_startpos’ /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/regex.h:191: error: storage class specified for parameter ‘ruby_re_compile_fastmap’ /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/regex.h:193: error: storage class specified for parameter ‘ruby_re_search’ /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/regex.h:195: error: storage class specified for parameter ‘ruby_re_match’ /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/regex.h:196: error: storage class specified for parameter ‘ruby_re_set_casetable’ /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/regex.h:197: error: storage class specified for parameter ‘ruby_re_copy_registers’ /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/regex.h:198: error: storage class specified for parameter ‘ruby_re_free_registers’ In file included from compat.c:150: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/re.h:21: error: storage class specified for parameter ‘Regexp’ /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/re.h:27: warning: empty declaration /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/re.h:38: error: storage class specified for parameter ‘ruby_ignorecase’ compat.c:153: error: redefinition of parameter ‘PQexecParams_compat’ compat.h:106: error: previous definition of ‘PQexecParams_compat’ was here compat.c:153: error: syntax error before ‘{’ token compat.c:155: error: parameter ‘result’ is initialized compat.c:155: error: ‘command’ undeclared (first use in this function) compat.c:155: error: (Each undeclared identifier is reported only once compat.c:155: error: for each function it appears in.) compat.c:156: error: parameter ‘ptr’ is initialized compat.c:157: error: parameter ‘scan’ is initialized compat.c:158: error: syntax error before ‘while’ compat.c:160: error: parameter ‘pos’ is initialized compat.c:160: warning: implicit declaration of function ‘BindParamNumber’ compat.c:160: error: ‘match’ undeclared (first use in this function) compat.c: In function ‘PQsetClientEncoding’:compat.c:161: error: syntax error before ‘if’ compat.c:217: error: storage class specified for parameter ‘query’ compat.c:217: error: parameter ‘query’ is initialized compat.c:221: error: syntax error before ‘if’ compat.c:276: error: parameter ‘target’ is initialized compat.c:20: error: redefinition of parameter ‘PQdescribePrepared’ compat.c:276: error: ‘to’ undeclared (first use in this function)compat.h:67: error: previous definition of ‘PQdescribePrepared’ was here compat.c:20: error: syntax error before ‘{’ token compat.c:277: error: parameter ‘remaining’ is initialized compat.c:277: error: ‘length’ undeclared (first use in this function) compat.c:279: error: syntax error before ‘while’ compat.c:324: error: conflicting types for ‘result’ compat.c:155: error: previous definition of ‘result’ was here compat.c:331: error: syntax error before ‘len’ compat.c:405: error: redefinition of parameter ‘i’ compat.c:325: error: previous definition of ‘i’ was here compat.c:408: error: syntax error before ‘if’ In file included from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/re.h:19, from compat.c:150: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/regex.h:115: error: storage class specified for parameter ‘ruby_register_info_type’ /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/regex.h:148: error: syntax error before ‘ruby_register_info_type’ /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/regex.h:148: warning: no semicolon at end of struct or union /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/regex.h:151: error: syntax error before ‘}’ token /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/regex.h:153: error: storage class specified for parameter ‘regex_t’ /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/regex.h:171: warning: empty declaration /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/regex.h:174: error: storage class specified for parameter ‘regoff_t’ /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/regex.h:181: error: syntax error before ‘regoff_t’ /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/regex.h:181: warning: no semicolon at end of struct or union /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/regex.h:187: error: storage class specified for parameter ‘ruby_re_compile_pattern’ /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/regex.h:190: error: storage class specified for parameter ‘ruby_re_adjust_startpos’ /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/regex.h:191: error: storage class specified for parameter ‘ruby_re_compile_fastmap’ /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/regex.h:193: error: storage class specified for parameter ‘ruby_re_search’ /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/regex.h:195: error: storage class specified for parameter ‘ruby_re_match’ /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/regex.h:196: error: storage class specified for parameter ‘ruby_re_set_casetable’ /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/regex.h:197: error: storage class specified for parameter ‘ruby_re_copy_registers’ /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/regex.h:198: error: storage class specified for parameter ‘ruby_re_free_registers’ In file included from compat.c:150: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/re.h:21: error: storage class specified for parameter ‘Regexp’ /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/re.h:27: warning: empty declaration /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/re.h:38: error: storage class specified for parameter ‘ruby_ignorecase’ compat.c:153: error: redefinition of parameter ‘PQexecParams_compat’ compat.h:106: error: previous definition of ‘PQexecParams_compat’ was here compat.c:153: error: syntax error before ‘{’ token compat.c:155: error: parameter ‘result’ is initialized compat.c:155: error: ‘command’ undeclared (first use in this function) compat.c:155: error: (Each undeclared identifier is reported only once compat.c:155: error: for each function it appears in.) compat.c:156: error: parameter ‘ptr’ is initialized compat.c:157: error: parameter ‘scan’ is initialized compat.c:158: error: syntax error before ‘while’ compat.c:160: error: parameter ‘pos’ is initialized compat.c:160: warning: implicit declaration of function ‘BindParamNumber’ compat.c:160: error: ‘match’ undeclared (first use in this function) compat.c:161: error: syntax error before ‘if’ compat.c:217: error: storage class specified for parameter ‘query’ compat.c:217: error: parameter ‘query’ is initialized compat.c:221: error: syntax error before ‘if’ compat.c:276: error: parameter ‘target’ is initialized compat.c:276: error: ‘to’ undeclared (first use in this function) compat.c:277: error: parameter ‘remaining’ is initialized compat.c:277: error: ‘length’ undeclared (first use in this function) compat.c:279: error: syntax error before ‘while’ compat.c:324: error: conflicting types for ‘result’ compat.c:155: error: previous definition of ‘result’ was here compat.c:331: error: syntax error before ‘len’ compat.c:405: error: redefinition of parameter ‘i’ compat.c:325: error: previous definition of ‘i’ was here compat.c:408: error: syntax error before ‘if’ lipo: can't open input file: /var/tmp//cczdbEuc.out (No such file or directory) make: *** [compat.o] Error 1 Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/postgres-0.7.9.2007.12.22 for inspection. Results logged to /Library/Ruby/Gems/1.8/gems/postgres-0.7.9.2007.12.22/ext/gem_make.out
This paste will be private.
From the Design Piracy series on my blog: