Cで書かれているMySQL/Rubyをさくらインターネットにインストールするには。
まずモジュールを
からダウンロード。
ruby extconf.rb –with-mysql-config
make
Makefileを下記のように変更。($HOME/localにインストールする場合)
%diff Makefile.org Makefile
10,11c10,11
< prefix = $(DESTDIR)/usr/local
< exec_prefix = $(DESTDIR)/usr/local
—
> prefix = $(DESTDIR)/$(HOME)/local
> exec_prefix = $(DESTDIR)/$(HOME)/local
26,27c26,27
< mandir = $(DESTDIR)/usr/local/man
< libdir = $(DESTDIR)/usr/local/lib
—
> mandir = $(DESTDIR)/$(HOME)/local/man
> libdir = $(DESTDIR)/$(HOME)/local/lib
29c29
< oldincludedir = $(DESTDIR)/usr/include
—
> oldincludedir = $(DESTDIR)/$(HOME)/include
62c62
< INSTALL = /usr/bin/install -c -o root -g wheel
—
> INSTALL = /usr/bin/install -c
下記を実行。
make install
Last 5 posts in MySQL
- MysqlのConnector/.NetでSemaphoreFullExceptionが発生(2) - June 29th, 2008
- MysqlのConnector/.NetでSemaphoreFullExceptionが発生 - June 29th, 2008
- ruby-dbiをさくらインターネット共有サーバにインストールするには - June 27th, 2008