{"id":2688,"date":"2022-08-30T15:26:57","date_gmt":"2022-08-30T15:26:57","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/02\/06\/problem-about-rbenv-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:26:57","modified_gmt":"2022-08-30T15:26:57","slug":"problem-about-rbenv-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/problem-about-rbenv-collection-of-common-programming-errors\/","title":{"rendered":"problem about rbenv-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/94725467898d9daa5fae90358807c811?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nGordon Gao<br \/>\nruby gem rbenv<br \/>\nEverything works fine with my installation of ruby 1.9.3.$ rbenv global 1.9.3-p385 $ gem list*** LOCAL GEMS ***bigdecimal (1.1.0) io-console (0.3) json (1.5.4) minitest (2.5.1) rake (0.9.2.2) rdoc (3.9.5) $ gem check $ However after I installed ruby 2.0.0 with rbenv install, some strange error messages showed up in gem check.$ rbenv install 2.0.0-p0 Downloading openssl-1.0.1e.tar.gz&#8230; -&gt; https:\/\/www.openssl.org\/source\/openssl-1.0.1e.tar.gz Installing openssl-1.0.1e&#8230; Installed openssl-1.0.1<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/8055121bc9df481462c9e5a5faf9a32c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nClergyman<br \/>\nruby-on-rails rubygems rbenv<br \/>\nI&#8217;m running ruby 2.0.0p247, rails 4.0.1 under rbenv management. When I first tried to start rails console, I had an error that readline is not found. I installed rb-readline gem and added to the gemfile as follows gem &#8216;rb-readline&#8217;, &#8216;0.4.2&#8217;. Adter bundle update the console became able to run. However, when I press upwards arrow to recall previous command, the console crashes with the following error:\/home\/clergyman\/.rbenv\/versions\/2.0.0-p247\/lib\/ruby\/gems\/2.0.0\/gems\/rb-readline-0.4.2\/lib\/rbreadl<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/6f8382c757ca1573eaf7b61a807800ce?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nIwan B.<br \/>\nruby ruby-on-rails-3 rbenv<br \/>\nI&#8217;m using:rbenv with ruby versions 1.9.3-p448 and 2.0.0-p247 rails 3.2.13I made some update (rails updated to 3.2.14) and when i started rails server or console i get a brutal segmentation fault:iwan $ rails s \/Users\/iwan\/dev\/rails\/pivotality_3\/vendor\/bundle\/gems\/debugger-1.6.1\/lib\/ruby_debug.bundle: [BUG] Segmentation fault ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin11.4.2]&#8211; Crash Report log information &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;See Crash Report log file under t<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/7a26736f7114a64c52275bc5ebb22a98?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJustin Seidl<br \/>\nruby jekyll rbenv<br \/>\nI&#8217;ve noticed a couple of posts that are similar to this but don&#8217;t understand how to solve the issue.I have rbenv with ruby 1.9.3-p392 installed and get the following error when I run jekyll &#8211;server:Configuration from \/Users\/seiju\/Sites\/a8os\/_config.yml Building site: \/Users\/seiju\/Sites\/a8os -&gt; \/Users\/seiju\/Sites\/a8os\/_site Liquid Exception: undefined method `xmlschema&#8217; for nil:NilClass in sitemap.xml \/Users\/seiju\/.rbenv\/versions\/1.9.3-p392\/lib\/ruby\/gems\/1.9.1\/gems\/jekyll-0.12.1\/lib\/jekyll\/fi<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/58faa3161fc9a84ffe5a952a2691c280?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nTheLegend<br \/>\nruby vagrant rbenv<br \/>\ni am attempting an vagrant install and would like to have 1.9.3-p327 as the default ruby version. i am using chef-solo and librarian-chef to manage the vagrant machine. my vagrant file provisioning for chef-solo looks like thisconfig.vm.provision :chef_solo do |chef| chef.cookbooks_path = &#8220;cookbooks&#8221; chef.add_recipe &#8220;apt&#8221; chef.add_recipe &#8220;build-essential&#8221; chef.add_recipe &#8220;git&#8221; chef.add_recipe &#8220;ruby_build&#8221; chef.add_recipe &#8220;rbenv::system&#8221; chef.add_recipe &#8220;rbenv::vagrant&#8221; chef.add_recipe &#8220;sqlite&#8221; c<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/0953b75cd018be4c5bc5ebe973616df4?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nrhodesjason<br \/>\nruby deployment rvm capistrano rbenv<br \/>\nI&#8217;ve been using Ruby&#8217;s Capistrano deployment tool for a few years and never had much problems with it at all. Now, after upgrading Ruby to 2.0, I started getting all kinds of errors making it impossible for me to deploy.I&#8217;ve since totally uninstalled RVM and everything but my base OS X Ruby install (1.8.7 I believe) and then re-installed from scratch via rbenv.I&#8217;m running Ruby 1.9.3-p0 via rbenv, and have installed Capistrano gem version 2.15.4 &#8212; but every time I try to do a dry run deploy cap<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/7504b530d1df33b972a3431d3640f618?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nChris Travers<br \/>\nruby-on-rails ruby gem rbenv pg<br \/>\nso here is what it looks like when i try to run bundle install: Installing pg (0.14.1) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.\/Users\/kory\/.rbenv\/versions\/1.9.3-p194\/bin\/ruby extconf.rb &#8211;with-pg-config=\/usr\/pgsql-9.1\/bin\/pg_configUsing config values from \/usr\/pgsql-9.1\/bin\/pg_configsh: \/usr\/pgsql-9.1\/bin\/pg_config: No such file or directorysh: \/usr\/pgsql-9.1\/bin\/pg_config: No such file or directory checking for libpq-fe.h&#8230; yes ch<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/8947a9372f254fd9293ff34372df1991?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nktsujister<br \/>\nruby rbenv<br \/>\nI am on ubuntu 12.04 and using ruby 2.0.0-p195 enabled by rbenv v0.4.0.when I run below,$ruby -rdigest\/sha1 -e &#8216;1&#8217;I get this error.\/home\/ktsuji\/.rbenv\/versions\/2.0.0-p195\/lib\/ruby\/2.0.0\/rubygems\/core_ext\/kernel_require.rb:45:in `require&#8217;: \/home\/ktsuji\/.rbenv\/versions\/2.0.0-p195\/lib\/ruby\/2.0.0\/x86_64-linux\/digest\/sha1.so: undefined symbol: rb_Digest_SHA1_Init &#8211; \/home\/ktsuji\/.rbenv\/versions\/2.0.0-p195\/lib\/ruby\/2.0.0\/x86_64-linux\/digest\/sha1.so (LoadError) from \/home\/ktsuji\/.rbenv\/versions\/2.0.0-p1<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/3333ffdcf7a7ebbc6142d6d7699a0ba9?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nThomas Berry<br \/>\nruby rbenv<br \/>\nI am trying to install ruby 1.9.3-p429 but I keep getting a compiling error. I&#8217;ve sought help from a few people around the shop and no one is able to figure it out. I was able to install ruby 2.0.0 without any errors. The following is the text I have copied from the terminal after entering the command rbenv install ruby-1.9.3-p429Any help would be greatly appreciated.Here is the error msg I am getting in it&#8217;s entirety:Installing ruby-1.9.3-p429&#8230;BUILD FAILEDInspect or clean up the working tree<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/0c61d6bae62b5e0f292a0b147591bafc?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\npabera<br \/>\nruby osx rbenv psych<br \/>\nI tried to get rvm uninstalled in order to use rbenv on my Mac. Everything works fine until ruby comes into play..when usingrbenv install 1.9.3-p194it compiles it correctly, but after that I&#8217;d like to install bundler.. this produces the following errorcomputer:~ computer$ gem install bundler \/Users\/computer\/.rbenv\/versions\/1.9.3-p194\/lib\/ruby\/1.9.1\/psych.rb:203:in `parse&#8217;: (&lt;unknown&gt;): mapping values are not allowed in this context at line 1 column 34 (Psych::SyntaxError)from \/Users\/comput<\/li>\n<\/ul>\n<p id=\"rop\"><small>Originally posted 2014-02-06 03:57:29. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>Gordon Gao ruby gem rbenv Everything works fine with my installation of ruby 1.9.3.$ rbenv global 1.9.3-p385 $ gem list*** LOCAL GEMS ***bigdecimal (1.1.0) io-console (0.3) json (1.5.4) minitest (2.5.1) rake (0.9.2.2) rdoc (3.9.5) $ gem check $ However after I installed ruby 2.0.0 with rbenv install, some strange error messages showed up in gem [&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-2688","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2688","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=2688"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2688\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2688"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2688"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2688"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}