現在、ruby kaigi2016が京都で開催中ですね。ということで、rubyを超高速でインストールする方法を紹介します。 インストールの高速化シリーズ第2弾です。(第1弾はこちら→ Nodebrewを使ってNode.jsを超高速にインストールする方法) Rubyをインストールするのに時間がかかるのは、コンパイルに時間がかかるためです。 Vagrantのように何度も壊して使う開発環境の場合、構築の度にコンパイルを待たなければなりません。 構築の待ち時間を少しでも減らせたら・・・と、思っている方はたくさんいるのでは・・・? 今回紹介する方法を使うと、インストール時間が25秒以下になります(マシンスペック&ネットワークに依存しますが・・・) 検証環境 検証環境はVagrantを使っています。 OSとスペックは以下の通りです。 # OS $ cat /etc/redhat-release Cen
Installing ruby-2.2.1... BUILD FAILED (CentOS release 6.4 (Final) using ruby-build 20130901-461-g7f3cc01) Inspect or clean up the working tree at /tmp/ruby-build.20150315081134.17206 Results logged to /tmp/ruby-build.20150315081134.17206.log Last 10 log lines: make[3]: Leaving directory `/tmp/ruby-build.20150315081134.17206/ruby-2.2.1/ext/fiddle/libffi-3.2.1' linking shared-object fiddle.so /usr/b
Ruby 2.2.0 Released 素晴らしいクリスマスプレゼント!! twitter見ている感じだと開発者の皆さんは大変だったようでお疲れ様でした+ありがとうございます。 Let's Install install Rubyのversion管理はrbenv使ってます。 rbenvでrubyのversion管理をするよ - まっしろけっけ rubyのversion upをした時の作業内容メモ - まっしろけっけ 詳細は上記の記事を参照してください。 環境はvm上にCnetOS入れてます。 $ rbenv install 2.2.0 Downloading ruby-2.2.0.tar.gz... -> http://dqw8nmjcqpjn7.cloudfront.net/7671e394abfb5d262fbcd3b27a71bf78737c7e9347fa21c39e58b0bb9
この記事は mod_mruby ngx_mruby Advent Calendar 2014 11 日目の記事です。 @takeswimです。福岡のゲーム会社でネットワークに関する諸々の開発をしています。 @matsumotoryさんがnginxへのngx_mrubyインストールについて投稿リクエストされておりまして、実は時を同じくして久しぶりにnginx+ngx_mrubyのインストール作業をしていまして、一連の作業を元にまとめてみました。 今回はnginx1.7.8(投稿当時最新版)に対しngx_mrubyを組み込む手順について解説したいと思います。 環境はGoogle Cloud Platformから払い出しました。 OSはCentOS6.6 http接続許可 それ以外はデフォルト で用意しています。 最初にオチを書いておきますと、私がこの投稿を書きながら知ったbuild.shを使用
I'm still new to rails/ruby/bundler and am a little confused. In our config/application.rb file there's this bundler segment: if defined?(Bundler) # If you precompile assets before deploying to production, use this line Bundler.require(*Rails.groups(:assets => %w(development test))) # If you want your assets lazily compiled in production, use this line # Bundler.require(:default, :assets, Rails.en
For context, it on a remote server which has a firewall. I'm setting up my environment through a proxy. I have ruby 1.8.7. When I try to gem install.. sudo gem install --http-proxy <host address>:<port> json I get the following error: Building native extensions. This could take a while... ERROR: Error installing json: ERROR: Failed to build gem native extension. /usr/bin/ruby extconf.rb mkmf.rb ca
In this tutorial, I’ll walk you through the concept behind using puma + NGINX, plus thorough instructions on setting them up on CentOS and Ubuntu. Concept Many people who come from the old Apache HTTPd day often ask me how reverse proxy + web server work? “It’s different paradigm” Reverse proxy software (such as Varnish or NGINX) would acts as a load balancer that routes all external requests to a
Binstubs are wrapper scripts around executables (sometimes referred to as "binaries", although they don't have to be compiled) whose purpose is to prepare the environment before dispatching the call to the original executable. In the Ruby world, the most common binstubs are the ones that RubyGems generates after installing a gem that contains executables. But binstubs can be written in any languag
ある日何気なく最新版のvagrant-berkshelf(4.0.4)を入れたところ、 It appears that you are not using the ChefDK. Please note that Vagrant Berkshelf works best when used with the ChefDK, and other installation methods are not officially supported. Please download and install the latest version of the ChefDK from: https://downloads.getchef.com/chef-dk and follow the installation instructions. Do not forget to add the Chef
本ガイドでは、アプリケーションで使われているRuby on Railsのバージョンを新しいバージョンにアップグレードする手順を解説します。アップグレードの手順は、Railsのバージョンごとに記載されています。 1 一般的なアドバイス 既存のアプリケーションをアップグレードする前に、アップグレードする理由を明確にしておく必要があります。「新しいバージョンのどの機能か必要か」「既存コードのサポートがどのぐらい困難になるか」「アップグレードに割り当てられる時間と人員スキルはどのぐらいか」など、いくつもの要素を調整しなければなりません。 1.1 テスティングのカバレッジ アップグレード後にアプリケーションが正常に動作していることを確認するには、良いテストカバレッジをアップグレード前に準備しておくのがベストです。アプリケーションを一度に検査できる自動テストがないと、変更点をすべて手動で確認するのに膨
いくつかのツールを使ってRubyをインストールできます。 このページでは、Rubyの管理とインストールのための、メジャーなパッケージ管理ツールとサードパーティツールについて解説します。 あなたのコンピューターにはすでにRubyがインストールされているかもしれません。ターミナルソフトで以下のように打つと確認することができます。 ruby -v インストールされているRubyのバージョンに関する情報が出力されるはずです。 インストール方法を選択 Rubyをインストールするには、いくつかの方法があります。 UNIX系のOSでは、システムの パッケージマネージャ を利用するのが最も簡単です。ただし、パッケージ化されたRubyのバージョンが最新であるとは限りません。 インストーラ を使えば、特定の、あるいは複数のRubyバージョンをインストールすることができます。また、Windows用のインストーラ
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く