$ sudo gem install rails でいいじゃない。というのはわかった上で敢えて CentOS とか Redhat 使っているなら RPM にしてもいいじゃない!! それにやっぱ yum で一発インストールしたいじゃない!! という人もいるかなと思ったりもするのでここでその方法を記述してみます。 とどのつまり $ sudo yum install rails (rubygem-rails) で Rails インストール OK にしたい、ということです。 なお、ここではパッケージ名をわかりやすくするために rubyforge から提供されているものに対して rubygem- を prefix としてつけています。なので、rails というパッケージ名ではなく rubygem-rails といった名前にしていますので「なんかキモい」とか思われる方は rubygem- をとっていた
ruby 1.9.3-p125とRails 3.2.xを素の状態からインストールする場合、普通は次のようなエラーになります。 It seems your ruby installation is missing psych (for YAML output). To eliminate this warning, please install libyaml and reinstall your ruby. これはエラーメッセージの内容のとおりで、例えばCentOSの場合はlibyamlが入っていないことによります。 以下、CentOSにlibyamlをインストールした後にruby 1.9.3-p125をインストールし、続いてRails 3.2.2をインストールする手順をまとめます。libyamlのインストール まずlibyamlをインストールします。libyaml-0.so.2等が/
Ruby, Rubygems, Rails をインストールする この記事は主にレンタルサーバにRubyがインストールされていなかった方向けです。 RMagickの項はその他の方にも参考にしていただけます。 Ruby インストール ruby のコンパイルには gcc が必要なので、入ってなかったら yum から入れる。 # yum install gcc ruby 本体をソースからインストールする。 # wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p72.tar.gz # tar zxvf ruby-1.8.7-p72.tar.gz # cd ruby-1.8.7-p72 # ./configure --prefix=/usr/local/ruby # make # make install ここで /usr/local/ruby
二部構成です。 ・CentOSにRailsを入れてODBC経由でSQLServerに繋げるまで その1 ・CentOSにRailsを入れてODBC経由でSQLServerに繋げるまで その2(本記事) ■SQLServer接続用の定義ファイルの記述 次の3ファイルの順で定義を行います。 +/etc/freetds/freetds.conf +/usr/etc/odbcinst.ini +/usr/etc/odbc.ini 各設定の関連が分かりづらいので、以下にその関連性を画像にしておきます。 (Railsのdatabase.ymlも含んでいます) なお、各定義の後に項目説明のコメントを書いていますが、 このコメントがあると動作しないので実際の定義ファイルでは削除しておいてください。 ■■/etc/freetds/freetds.conf FreeTDS用設定。接続する先
二部構成です。 ・CentOSにRailsを入れてODBC経由でSQLServerに繋げるまで その1(本記事) ・CentOSにRailsを入れてODBC経由でSQLServerに繋げるまで その2 Linux上のRailsからSQLServerに繋ぐ必要があったので、その手順を書いておきます。 長いのでパート2まであります。 ここではCentOS5.3 32bit版上での環境構築となります。 CentOS5.3のレポジトリに入っているパッケージが古いものが多いので、 ほとんどはソースからインストールする事になります。 その際、後にアンインストールするのが楽になるよう、RPMを作成してからインストールしています。 インストールしたアプリケーションのバージョンは以下となります。 とにかく環境構築時点での最新のものを使っているのでご注意を。 *CentOS 5.3(32bit
Redhat Enterprise Linux上にRails 2.3環境を導入して、簡単な伝言板アプリケーションを作るまでを解説する資料がIBMホームページで公開されています。 - Linux at IBM | Ruby on Rails with RHEL5.2 入門 RHEL5.2 上に Ruby on Rails を導入して利用する方法について紹介しています。 ハンズオン形式で Ruby on Rails の基本的な仕組みと使用方法が学べるようになっています。 もともとはハンズオン(実機演習)ように作られた資料を公開した物のようですね。使用するDBMSはPostgreSQLです。演習用なので、ステップバイステップで入力するコマンドやソースコードが示されていて、それに従って入力するだけでアプリケーションが完成します。Linux上でのRails開発を簡単に体験してみたいという方には良い入
一つの地方でありながら、七つの県それぞれに違った表情を持つ九州には、車で訪れてみたい魅力的なスポットがたくさんあります。ここでは福岡県、佐賀県、長崎県、大分県、熊本県、宮崎県、鹿児島県、すべての県ごとに日帰りで行けるおすすめのドライブスポットを紹介します。 まず何処へ行こうか?と迷ったときはこの記事を参考にしてみてください。 志賀島(しかのしま)は玄界灘に浮かぶ小さな島です。福岡市東区に位置し、島とはいいながら砂州によって九州本土と陸続きとなっている、全国でも珍しい陸繋島(りくけいとう)です。そのため志賀島へは、砂州の上に敷かれた「海の中道」を通って車で直接アクセスができます。 海岸線を臨みながら島を一周したり、休暇村志賀島で温泉に浸かったり、新鮮な魚介類を使った海鮮料理に舌鼓を打ったり、美しい夕日を眺めたり…海と親しみながら、いろいろな楽しみ方が出来る島です。また志賀島は、国宝である「漢
インストール後、初回設定が終わったら、RAIDの設定開始。 まずは必要なソフトをインストールして、次にまだ使っていないhdbをRAID用に設定。 aptitude install mdadm # RAIDディバイスの作成 mdadm --create /dev/md0 --level=1 --raid-devices=2 missing /dev/hdb1 mdadm --create /dev/md1 --level=1 --raid-devices=2 missing /dev/hdb2 mdadm --create /dev/md2 --level=1 --raid-devices=2 missing /dev/hdb3 mdadm --create /dev/md3 --level=1 --raid-devices=2 missing /dev/hdb5 mdadm --creat
Posted by masuidrive Mon, 05 Mar 2007 15:00:00 GMT [最強Railsサーバ構築計画 その2] User Mode Linux 環境を作る Posted by masuidrive 18 days ago 先のdebianでSoftware RAID1マシンを作る でDebianのインストールが完了したので、これにRails環境を構築していきます。 しかし、このDebianに直接Railsをインストールすると、複数の環境を作るのが難しくなるので、User Mode Linux を作って、Debianの上にDebianをインストールし、Rails環境はその上に載せるようにします。 UMLを使うと、複数の環境を簡単に構築できるので、テストをしたり複数のバージョンのライブラリを使うのが非常に楽になりますが、メモリやパフォーマンスが犠牲になります。
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く