{"id":7270,"date":"2014-06-03T23:29:52","date_gmt":"2014-06-03T23:29:52","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/06\/03\/error-occurred-while-installing-rice-gem-collection-of-common-programming-errors\/"},"modified":"2014-06-03T23:29:52","modified_gmt":"2014-06-03T23:29:52","slug":"error-occurred-while-installing-rice-gem-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/06\/03\/error-occurred-while-installing-rice-gem-collection-of-common-programming-errors\/","title":{"rendered":"error occurred while installing rice gem-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m trying to install <code>rice<\/code> gem via <code>ruby 1.9.3<\/code> in ubuntu 12.4 but I get:<\/p>\n<pre><code>An error occurred while installing rice (1.4.2), and Bundler cannot continue.\nMake sure that `gem install rice -v '1.4.2'` succeeds before bundling.\n<\/code><\/pre>\n<p>I tried to install libs below but it didn&#8217;t worke for me:<\/p>\n<pre><code>sudo apt-get install libmapnik libmapnik-dev mapnik-utils python-mapnik\n<\/code><\/pre>\n<p>this is the complete exception that I get:<\/p>\n<pre><code>Gem::Ext::BuildError: ERROR: Failed to build gem native extension.\n\n    \/home\/vagrant\/.rvm\/rubies\/ruby-2.1.0\/bin\/ruby extconf.rb \nextconf.rb:20:in `': Use RbConfig instead of obsolete and deprecated Config.\nextconf.rb:20:in `': Use RbConfig instead of obsolete and deprecated Config.\nextconf.rb:20:in `': Use RbConfig instead of obsolete and deprecated Config.\nextconf.rb:25:in `': Use RbConfig instead of obsolete and deprecated Config.\nchecking for a BSD-compatible install... \/usr\/bin\/install -c\nchecking whether build environment is sane... yes\nchecking for a thread-safe mkdir -p... \/bin\/mkdir -p\nchecking for gawk... gawk\nchecking whether make sets $(MAKE)... yes\nchecking for g++... g++\nchecking for C++ compiler default output file name... a.out\nchecking whether the C++ compiler works... yes\nchecking whether we are cross compiling... no\nchecking for suffix of executables... \nchecking for suffix of object files... o\nchecking whether we are using the GNU C++ compiler... yes\nchecking whether g++ accepts -g... yes\nchecking for style of include used by make... GNU\nchecking dependency style of g++... gcc3\nchecking for ranlib... ranlib\nchecking build system type... x86_64-unknown-linux-gnu\nchecking host system type... x86_64-unknown-linux-gnu\n-e:1:in `': Use RbConfig instead of obsolete and deprecated Config.\n...\n-e:1:in `': Use RbConfig instead of obsolete and deprecated Config.\n-e:1:in `': Use RbConfig instead of obsolete and deprecated Config.\n-e:1:in `': uninitialized constant CONFIG (NameError)\nchecking for ruby.h... yes\nchecking for node.h... no\nchecking for ruby\/node.h... no\nchecking for version.h... no\nchecking for env.h... no\nchecking host system type... (cached) x86_64-unknown-linux-gnu\nchecking for doxygen... no\nconfigure: WARNING: doxygen not found - will not generate any doxygen documentation\nchecking for perl... \/usr\/bin\/perl\nconfigure: creating .\/config.status\nconfig.status: creating Makefile\nconfig.status: creating rice\/Makefile\nconfig.status: creating test\/Makefile\nconfig.status: creating sample\/Makefile\nconfig.status: creating ruby\/Makefile\nconfig.status: creating ruby\/lib\/Makefile\nconfig.status: creating test\/ext\/Makefile\nconfig.status: creating ruby\/lib\/mkmf-rice.rb\nconfig.status: creating rice\/detail\/ruby_version_code.hpp\nconfig.status: creating rice\/config.hpp\nconfig.status: rice\/config.hpp is unchanged\nconfig.status: executing depfiles commands\n\nmake \"DESTDIR=\" clean\nMaking clean in ruby\nmake[1]: Entering directory `\/home\/vagrant\/.rvm\/gems\/ruby-2.1.0\/gems\/rice-1.4.2\/ruby'\nMaking clean in lib\nmake[2]: Entering directory `\/home\/vagrant\/.rvm\/gems\/ruby-2.1.0\/gems\/rice-1.4.2\/ruby\/lib'\nmake[2]: Nothing to be done for `clean'.\nmake[2]: Leaving directory `\/home\/vagrant\/.rvm\/gems\/ruby-2.1.0\/gems\/rice-1.4.2\/ruby\/lib'\nMaking clean in .\nmake[2]: Entering directory `\/home\/vagrant\/.rvm\/gems\/ruby-2.1.0\/gems\/rice-1.4.2\/ruby'\nmake[2]: Nothing to be done for `clean-am'.\nmake[2]: Leaving directory `\/home\/vagrant\/.rvm\/gems\/ruby-2.1.0\/gems\/rice-1.4.2\/ruby'\nmake[1]: Leaving directory `\/home\/vagrant\/.rvm\/gems\/ruby-2.1.0\/gems\/rice-1.4.2\/ruby'\nMaking clean in sample\nmake[1]: Entering directory `\/home\/vagrant\/.rvm\/gems\/ruby-2.1.0\/gems\/rice-1.4.2\/sample'\n\/home\/vagrant\/.rvm\/rubies\/ruby-2.1.0\/bin\/ruby -I\/home\/vagrant\/.rvm\/gems\/ruby-2.1.0\/gems\/rice-1.4.2\/ruby\/lib -C enum extconf.rb --with-cppflags=\"-I\/home\/vagrant\/.rvm\/gems\/ruby-2.1.0\/gems\/rice-1.4.2\" --with-libpath=\"\/home\/vagrant\/.rvm\/gems\/ruby-2.1.0\/gems\/rice-1.4.2\/rice\"\nchecking for main() in -lrice... no\n*** extconf.rb failed ***\nCould not create Makefile due to some reason, probably lack of necessary\nlibraries and\/or headers.  Check the mkmf.log file for more details.  You may\nneed configuration options.\n\nProvided configuration options:\n    --with-opt-dir\n    --without-opt-dir\n    --with-opt-include\n    --without-opt-include=${opt-dir}\/include\n    --with-opt-lib\n    --without-opt-lib=${opt-dir}\/lib\n    --with-make-prog\n    --without-make-prog\n    --srcdir=.\n    --curdir\n    --ruby=\/home\/vagrant\/.rvm\/rubies\/ruby-2.1.0\/bin\/ruby\n    --with-libpath\n    --with-libpath\n    --with-ricelib\n    --without-ricelib\n\/home\/vagrant\/.rvm\/gems\/ruby-2.1.0\/gems\/rice-1.4.2\/ruby\/lib\/mkmf-rice.rb:79:in `init_mkmf_rice': unhandled exception\n    from \/home\/vagrant\/.rvm\/gems\/ruby-2.1.0\/gems\/rice-1.4.2\/ruby\/lib\/mkmf-rice.rb:215:in `'\n    from \/home\/vagrant\/.rvm\/rubies\/ruby-2.1.0\/lib\/ruby\/site_ruby\/2.1.0\/rubygems\/core_ext\/kernel_require.rb:55:in `require'\n    from \/home\/vagrant\/.rvm\/rubies\/ruby-2.1.0\/lib\/ruby\/site_ruby\/2.1.0\/rubygems\/core_ext\/kernel_require.rb:55:in `require'\n    from extconf.rb:1:in `'\nmake[1]: *** [enum\/Makefile] Error 1\nmake[1]: Leaving directory `\/home\/vagrant\/.rvm\/gems\/ruby-2.1.0\/gems\/rice-1.4.2\/sample'\nmake: *** [clean-recursive] Error 1\n\nmake \"DESTDIR=\"\nMaking all in rice\nmake[1]: Entering directory `\/home\/vagrant\/.rvm\/gems\/ruby-2.1.0\/gems\/rice-1.4.2\/rice'\nmake  all-am\nmake[2]: Entering directory `\/home\/vagrant\/.rvm\/gems\/ruby-2.1.0\/gems\/rice-1.4.2\/rice'\ng++ -DHAVE_CONFIG_H -I.  -I\/home\/vagrant\/.rvm\/rubies\/ruby-2.1.0\/include\/ruby-2.1.0 -I\/home\/vagrant\/.rvm\/rubies\/ruby-2.1.0\/include\/ruby-2.1.0\/x86_64-linux  -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration  -fPIC -fPIC -I\/home\/vagrant\/.rvm\/rubies\/ruby-2.1.0\/include\/ruby-2.1.0 -I\/home\/vagrant\/.rvm\/rubies\/ruby-2.1.0\/include\/ruby-2.1.0\/x86_64-linux -MT Class.o -MD -MP -MF .deps\/Class.Tpo -c -o Class.o Class.cpp\ncc1plus: warning: command line option \u2018-Wdeclaration-after-statement\u2019 is valid for C\/ObjC but not for C++ [enabled by default]\ncc1plus: warning: command line option \u2018-Wimplicit-function-declaration\u2019 is valid for C\/ObjC but not for C++ [enabled by default]\nmv -f .deps\/Class.Tpo .deps\/Class.Po\ng++ -DHAVE_CONFIG_H -I.  -I\/home\/vagrant\/.rvm\/rubies\/ruby-2.1.0\/include\/ruby-2.1.0 -I\/home\/vagrant\/.rvm\/rubies\/ruby-2.1.0\/include\/ruby-2.1.0\/x86_64-linux  -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration  -fPIC -fPIC -I\/home\/vagrant\/.rvm\/rubies\/ruby-2.1.0\/include\/ruby-2.1.0 -I\/home\/vagrant\/.rvm\/rubies\/ruby-2.1.0\/include\/ruby-2.1.0\/x86_64-linux -MT Data_Type.o -MD -MP -MF .deps\/Data_Type.Tpo -c -o Data_Type.o Data_Type.cpp\ncc1plus: warning: command line option \u2018-Wdeclaration-after-statement\u2019 is valid for C\/ObjC but not for C++ [enabled by default]\ncc1plus: warning: command line option \u2018-Wimplicit-function-declaration\u2019 is valid for C\/ObjC but not for C++ [enabled by default]\nmv -f .deps\/Data_Type.Tpo .deps\/Data_Type.Po\ng++ -DHAVE_CONFIG_H -I.  -I\/home\/vagrant\/.rvm\/rubies\/ruby-2.1.0\/include\/ruby-2.1.0 -I\/home\/vagrant\/.rvm\/rubies\/ruby-2.1.0\/include\/ruby-2.1.0\/x86_64-linux  -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration  -fPIC -fPIC -I\/home\/vagrant\/.rvm\/rubies\/ruby-2.1.0\/include\/ruby-2.1.0 -I\/home\/vagrant\/.rvm\/rubies\/ruby-2.1.0\/include\/ruby-2.1.0\/x86_64-linux -MT Director.o -MD -MP -MF .deps\/Director.Tpo -c -o Director.o Director.cpp\ncc1plus: warning: command line option \u2018-Wdeclaration-after-statement\u2019 is valid for C\/ObjC but not for C++ [enabled by default]\ncc1plus: warning: command line option \u2018-Wimplicit-function-declaration\u2019 is valid for C\/ObjC but not for C++ [enabled by default]\nmv -f .deps\/Director.Tpo .deps\/Director.Po\ng++ -DHAVE_CONFIG_H -I.  -I\/home\/vagrant\/.rvm\/rubies\/ruby-2.1.0\/include\/ruby-2.1.0 -I\/home\/vagrant\/.rvm\/rubies\/ruby-2.1.0\/include\/ruby-2.1.0\/x86_64-linux  -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration  -fPIC -fPIC -I\/home\/vagrant\/.rvm\/rubies\/ruby-2.1.0\/include\/ruby-2.1.0 -I\/home\/vagrant\/.rvm\/rubies\/ruby-2.1.0\/include\/ruby-2.1.0\/x86_64-linux -MT Exception.o -MD -MP -MF .deps\/Exception.Tpo -c -o Exception.o Exception.cpp\ncc1plus: warning: command line option \u2018-Wdeclaration-after-statement\u2019 is valid for C\/ObjC but not for C++ [enabled by default]\ncc1plus: warning: command line option \u2018-Wimplicit-function-declaration\u2019 is valid for C\/ObjC but not for C++ [enabled by default]\nmv -f .deps\/Exception.Tpo .deps\/Exception.Po\ng++ -DHAVE_CONFIG_H -I.  -I\/home\/vagrant\/.rvm\/rubies\/ruby-2.1.0\/include\/ruby-2.1.0 -I\/home\/vagrant\/.rvm\/rubies\/ruby-2.1.0\/include\/ruby-2.1.0\/x86_64-linux  -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration  -fPIC -fPIC -I\/home\/vagrant\/.rvm\/rubies\/ruby-2.1.0\/include\/ruby-2.1.0 -I\/home\/vagrant\/.rvm\/rubies\/ruby-2.1.0\/include\/ruby-2.1.0\/x86_64-linux -MT Identifier.o -MD -MP -MF .deps\/Identifier.Tpo -c -o Identifier.o Identifier.cpp\ncc1plus: warning: command line option \u2018-Wdeclaration-after-statement\u2019 is valid for C\/ObjC but not for C++ [enabled by default]\ncc1plus: warning: command line option \u2018-Wimplicit-function-declaration\u2019 is valid for C\/ObjC but not for C++ [enabled by default]\nmv -f .deps\/Identifier.Tpo .deps\/Identifier.Po\ng++ -DHAVE_CONFIG_H -I.  -I\/home\/vagrant\/.rvm\/rubies\/ruby-2.1.0\/include\/ruby-2.1.0 -I\/home\/vagrant\/.rvm\/rubies\/ruby-2.1.0\/include\/ruby-2.1.0\/x86_64-linux  -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration  -fPIC -fPIC -I\/home\/vagrant\/.rvm\/rubies\/ruby-2.1.0\/include\/ruby-2.1.0 -I\/home\/vagrant\/.rvm\/rubies\/ruby-2.1.0\/include\/ruby-2.1.0\/x86_64-linux -MT Module.o -MD -MP -MF .deps\/Module.Tpo -c -o Module.o Module.cpp\ncc1plus: warning: command line option \u2018-Wdeclaration-after-statement\u2019 is valid for C\/ObjC but not for C++ [enabled by default]\ncc1plus: warning: command line option \u2018-Wimplicit-function-declaration\u2019 is valid for C\/ObjC but not for C++ [enabled by default]\nmv -f .deps\/Module.Tpo .deps\/Module.Po\ng++ -DHAVE_CONFIG_H -I.  -I\/home\/vagrant\/.rvm\/rubies\/ruby-2.1.0\/include\/ruby-2.1.0 -I\/home\/vagrant\/.rvm\/rubies\/ruby-2.1.0\/include\/ruby-2.1.0\/x86_64-linux  -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration  -fPIC -fPIC -I\/home\/vagrant\/.rvm\/rubies\/ruby-2.1.0\/include\/ruby-2.1.0 -I\/home\/vagrant\/.rvm\/rubies\/ruby-2.1.0\/include\/ruby-2.1.0\/x86_64-linux -MT Object.o -MD -MP -MF .deps\/Object.Tpo -c -o Object.o Object.cpp\ncc1plus: warning: command line option \u2018-Wdeclaration-after-statement\u2019 is valid for C\/ObjC but not for C++ [enabled by default]\ncc1plus: warning: command line option \u2018-Wimplicit-function-declaration\u2019 is valid for C\/ObjC but not for C++ [enabled by default]\nmv -f .deps\/Object.Tpo .deps\/Object.Po\ng++ -DHAVE_CONFIG_H -I.  -I\/home\/vagrant\/.rvm\/rubies\/ruby-2.1.0\/include\/ruby-2.1.0 -I\/home\/vagrant\/.rvm\/rubies\/ruby-2.1.0\/include\/ruby-2.1.0\/x86_64-linux  -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration  -fPIC -fPIC -I\/home\/vagrant\/.rvm\/rubies\/ruby-2.1.0\/include\/ruby-2.1.0 -I\/home\/vagrant\/.rvm\/rubies\/ruby-2.1.0\/include\/ruby-2.1.0\/x86_64-linux -MT String.o -MD -MP -MF .deps\/String.Tpo -c -o String.o String.cpp\ncc1plus: warning: command line option \u2018-Wdeclaration-after-statement\u2019 is valid for C\/ObjC but not for C++ [enabled by default]\ncc1plus: warning: command line option \u2018-Wimplicit-function-declaration\u2019 is valid for C\/ObjC but not for C++ [enabled by default]\nmv -f .deps\/String.Tpo .deps\/String.Po\ng++ -DHAVE_CONFIG_H -I.  -I\/home\/vagrant\/.rvm\/rubies\/ruby-2.1.0\/include\/ruby-2.1.0 -I\/home\/vagrant\/.rvm\/rubies\/ruby-2.1.0\/include\/ruby-2.1.0\/x86_64-linux  -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration  -fPIC -fPIC -I\/home\/vagrant\/.rvm\/rubies\/ruby-2.1.0\/include\/ruby-2.1.0 -I\/home\/vagrant\/.rvm\/rubies\/ruby-2.1.0\/include\/ruby-2.1.0\/x86_64-linux -MT Struct.o -MD -MP -MF .deps\/Struct.Tpo -c -o Struct.o Struct.cpp\ncc1plus: warning: command line option \u2018-Wdeclaration-after-statement\u2019 is valid for C\/ObjC but not for C++ [enabled by default]\ncc1plus: warning: command line option \u2018-Wimplicit-function-declaration\u2019 is valid for C\/ObjC but not for C++ [enabled by default]\nIn file included from Hash.hpp:207:0,\n                 from Struct.hpp:5,\n                 from Struct.cpp:1:\nHash.ipp: In member function \u2018Rice::Hash::Iterator&amp; Rice::Hash::Iterator::operator++()\u2019:\nHash.ipp:221:18: error: \u2018st_table\u2019 has no member named \u2018bins\u2019\nHash.ipp: In member function \u2018Rice::Hash::iterator Rice::Hash::begin()\u2019:\nHash.ipp:289:34: error: \u2018st_table\u2019 has no member named \u2018bins\u2019\nHash.ipp: In member function \u2018Rice::Hash::const_iterator Rice::Hash::begin() const\u2019:\nHash.ipp:296:40: error: \u2018st_table\u2019 has no member named \u2018bins\u2019\nmake[2]: *** [Struct.o] Error 1\nmake[2]: Leaving directory `\/home\/vagrant\/.rvm\/gems\/ruby-2.1.0\/gems\/rice-1.4.2\/rice'\nmake[1]: *** [all] Error 2\nmake[1]: Leaving directory `\/home\/vagrant\/.rvm\/gems\/ruby-2.1.0\/gems\/rice-1.4.2\/rice'\nmake: *** [all-recursive] Error 1\n\nmake failed, exit code 2\n\nGem files will remain installed in \/home\/vagrant\/.rvm\/gems\/ruby-2.1.0\/gems\/rice-1.4.2 for inspection.\nResults logged to \/home\/vagrant\/.rvm\/gems\/ruby-2.1.0\/extensions\/x86_64-linux\/2.1.0\/rice-1.4.2\/gem_make.out\n\nAn error occurred while installing rice (1.4.2), and Bundler cannot continue.\nMake sure that `gem install rice -v '1.4.2'` succeeds before bundling.\n<\/code><\/pre>\n<p>Any help?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m trying to install rice gem via ruby 1.9.3 in ubuntu 12.4 but I get: An error occurred while installing rice (1.4.2), and Bundler cannot continue. Make sure that `gem install rice -v &#8216;1.4.2&#8217;` succeeds before bundling. I tried to install libs below but it didn&#8217;t worke for me: sudo apt-get install libmapnik libmapnik-dev mapnik-utils [&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-7270","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7270","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=7270"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7270\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7270"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7270"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}