{"id":7350,"date":"2014-06-07T02:30:10","date_gmt":"2014-06-07T02:30:10","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/06\/07\/unable-to-install-posix-spawn-on-freebsd-collection-of-common-programming-errors\/"},"modified":"2014-06-07T02:30:10","modified_gmt":"2014-06-07T02:30:10","slug":"unable-to-install-posix-spawn-on-freebsd-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/06\/07\/unable-to-install-posix-spawn-on-freebsd-collection-of-common-programming-errors\/","title":{"rendered":"Unable To Install posix-spawn on FreeBSD-Collection of common programming errors"},"content":{"rendered":"<p>I am attempting to get octopress going and having trouble installing the required package posix-spawn.<\/p>\n<p>Here this is the error output:<\/p>\n<pre><code>ERROR:  Error installing posix-spawn:\n        ERROR: Failed to build gem native extension.\n\n\/home\/private\/.rvm\/rubies\/ruby-1.9.3-p392\/bin\/ruby extconf.rb\ncreating Makefile\n\nmake\ncompiling posix-spawn.c\nposix-spawn.c:9:19: error: spawn.h: No such file or directory\nIn file included from \/home\/private\/.rvm\/rubies\/ruby-1.9.3-p392\/include\/ruby-    1.9.1\/ruby\/ruby.h:24,\n                 from \/home\/private\/.rvm\/rubies\/ruby-1.9.3-p392\/include\/ruby-1.9.1\/ruby.h:32,\n                 from posix-spawn.c:14:\n\/home\/private\/.rvm\/rubies\/ruby-1.9.3-p392\/include\/ruby-1.9.1\/i386-    freebsd8.3\/ruby\/config.h:17:1: warning: \"_GNU_SOURCE\" redefined\nposix-spawn.c:3:1: warning: this is the location of the previous definition\nposix-spawn.c:103: error: expected declaration specifiers or '...' before     'posix_spawn_file_actions_t'\nposix-spawn.c: In function 'posixspawn_file_actions_addclose':\nposix-spawn.c:113: warning: implicit declaration of function     'posix_spawn_file_actions_addclose'\nposix-spawn.c:113: error: 'fops' undeclared (first use in this function)\nposix-spawn.c:113: error: (Each undeclared identifier is reported only once\nposix-spawn.c:113: error: for each function it appears in.)\nposix-spawn.c: At top level:\nposix-spawn.c:129: error: expected declaration specifiers or '...' before     'posix_spawn_file_actions_t'\nposix-spawn.c: In function 'posixspawn_file_actions_adddup2':\nposix-spawn.c:141: warning: implicit declaration of function     'posix_spawn_file_actions_adddup2'\nposix-spawn.c:141: error: 'fops' undeclared (first use in this function)\nposix-spawn.c: At top level:\nposix-spawn.c:155: error: expected declaration specifiers or '...' before     'posix_spawn_file_actions_t'\nposix-spawn.c: In function 'posixspawn_file_actions_addopen':\nposix-spawn.c:173: warning: implicit declaration of function     'posix_spawn_file_actions_addopen'\nposix-spawn.c:173: error: 'fops' undeclared (first use in this function)\nposix-spawn.c: At top level:\nposix-spawn.c:186: error: expected declaration specifiers or '...' before     'posix_spawn_file_actions_t'\nposix-spawn.c: In function 'posixspawn_file_actions_operations_iter':\nposix-spawn.c:190: error: 'fops' undeclared (first use in this function)\nposix-spawn.c:190: error: too many arguments to function 'posixspawn_file_actions_addclose'\nposix-spawn.c:193: error: too many arguments to function 'posixspawn_file_actions_adddup2'\nposix-spawn.c:196: error: too many arguments to function 'posixspawn_file_actions_addopen'\nposix-spawn.c: At top level:\nposix-spawn.c:210: error: expected ')' before '*' token\nposix-spawn.c:230: error: expected declaration specifiers or '...' before 'posix_spawnattr_t'\nposix-spawn.c: In function 'posixspawn_set_pgroup':\nposix-spawn.c:237: error: 'POSIX_SPAWN_SETPGROUP' undeclared (first use in this function)\nposix-spawn.c:238: warning: implicit declaration of function 'posix_spawnattr_setpgroup'\nposix-spawn.c:238: error: 'pattr' undeclared (first use in this function)\nposix-spawn.c: In function 'each_env_check_i':\nposix-spawn.c:253: warning: unused parameter 'arg'\nposix-spawn.c: In function 'rb_posixspawn_pspawn':\nposix-spawn.c:330: error: 'posix_spawn_file_actions_t' undeclared (first use in this function)\nposix-spawn.c:330: error: expected ';' before 'fops'\nposix-spawn.c:331: error: 'posix_spawnattr_t' undeclared (first use in this function)\nposix-spawn.c:331: error: expected ';' before 'attr'\nposix-spawn.c:332: warning: ISO C90 forbids mixed declarations and code\nposix-spawn.c:341: warning: ISO C90 forbids mixed declarations and code\nposix-spawn.c:381: warning: ISO C90 forbids mixed declarations and code\nposix-spawn.c:391: warning: implicit declaration of function 'posixspawn_file_actions_init'\nposix-spawn.c:391: error: 'fops' undeclared (first use in this function)\nposix-spawn.c:392: warning: implicit declaration of function 'posix_spawnattr_init'\nposix-spawn.c:392: error: 'attr' undeclared (first use in this function)\nposix-spawn.c:395: error: 'POSIX_SPAWN_SETSIGMASK' undeclared (first use in this function)\nposix-spawn.c:397: warning: implicit declaration of function 'posix_spawnattr_setsigmask'\nposix-spawn.c:407: error: too many arguments to function 'posixspawn_set_pgroup'\nposix-spawn.c:409: warning: implicit declaration of function 'posix_spawnattr_setflags'\nposix-spawn.c:418: warning: implicit declaration of function 'posix_spawnp'\nposix-spawn.c:427: warning: implicit declaration of function     'posix_spawn_file_actions_destroy'\nposix-spawn.c:428: warning: implicit declaration of function 'posix_spawnattr_destroy'\nposix-spawn.c:320: warning: unused parameter 'self'\n*** Error code 1\n<\/code><\/pre>\n<p>I found this comment in Github that says to make sure spawn.h is in my \/usr\/include\/ folder, but that seemed to have no effect.<\/p>\n<p>Any other thoughts?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am attempting to get octopress going and having trouble installing the required package posix-spawn. Here this is the error output: ERROR: Error installing posix-spawn: ERROR: Failed to build gem native extension. \/home\/private\/.rvm\/rubies\/ruby-1.9.3-p392\/bin\/ruby extconf.rb creating Makefile make compiling posix-spawn.c posix-spawn.c:9:19: error: spawn.h: No such file or directory In file included from \/home\/private\/.rvm\/rubies\/ruby-1.9.3-p392\/include\/ruby- 1.9.1\/ruby\/ruby.h:24, from \/home\/private\/.rvm\/rubies\/ruby-1.9.3-p392\/include\/ruby-1.9.1\/ruby.h:32, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7350","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7350","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7350"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7350\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7350"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7350"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7350"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}