• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            大龍的博客

            常用鏈接

            統計

            最新評論

            Install Ruby 1.9.3 with libyaml on CentOS(轉)

            Ruby 1.9.3-p0 makes psych—the replacement for 1.8.7’s YAML library, Syck—the default YAML parser. Psych is a wrapper around libyaml, so you’re going to need it installed and configured before installing Ruby.

            If you install 1.9.3-p0 without libyaml, you’ll see warnings like this:

            It seems your ruby installation is missing psych (for YAML output). To eliminate this warning, please install libyaml and reinstall your ruby.

            Installing libyaml

            $ wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
            $ tar xzvf yaml-0.1.4.tar.gz
            $ cd yaml-0.1.4
            $ ./configure --prefix=/usr/local
            $ make
            $ make install

            Quick review of what’s going on: download and untar the source code, change to the directory and install the package. You may need to sudo the make install command. Your mileage may vary.

            Installing Ruby 1.9.3-p0

            $ wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p0.tar.gz
            $ tar xzvf ruby-1.9.3-p0.tar.gz
            $ cd ruby-1.9.3-p0
            $ ./configure --prefix=/usr/local --enable-shared --disable-install-doc --with-opt-dir=/usr/local/lib
            $ make
            $ make install

            After installing, you can verify that Ruby was installed with ruby -v. It’s also worth trying gem --version to make sure you don’t get any errors regarding psych.

            I tried installing libyaml-devel and libyaml from Yum, but couldn’t get ruby installed and recognizing those packages. Out of frustration, I turned to installing libyaml by source and it Just Worked™

            posted on 2012-10-29 12:37 大龍 閱讀(1488) 評論(0)  編輯 收藏 引用

            亚洲综合伊人久久综合| 狠狠色综合网站久久久久久久高清 | 93精91精品国产综合久久香蕉| 久久久国产精品亚洲一区| 久久精品成人免费网站| 亚洲欧洲精品成人久久奇米网| 久久久久久久久久久| 久久天堂电影网| 久久天天躁狠狠躁夜夜躁2O2O| 精品无码久久久久久久久久| 人妻少妇久久中文字幕| 91精品久久久久久无码| 亚洲精品无码久久一线| 18禁黄久久久AAA片| 久久本道综合久久伊人| 久久久久久人妻无码| 久久精品成人一区二区三区| 久久久中文字幕| 亚洲精品无码久久久久久| 欧美国产成人久久精品| 一本大道久久东京热无码AV| 久久精品国产99国产精品澳门| 亚洲国产精品久久久天堂| 亚洲国产一成久久精品国产成人综合| 久久精品国产亚洲AV高清热| 精品久久亚洲中文无码| 无码人妻少妇久久中文字幕| 伊人久久一区二区三区无码| 国产视频久久| 久久这里只精品99re66| 久久只这里是精品66| 久久精品视频91| 久久婷婷色综合一区二区| 久久久亚洲精品蜜桃臀| 精品无码久久久久久国产| 久久综合成人网| 久久久久成人精品无码| 热综合一本伊人久久精品| 日本精品久久久久影院日本| 中文字幕久久亚洲一区| 777午夜精品久久av蜜臀|