2013-01-01から1年間の記事一覧

LD_LIBRARY_PATH とは

共有ライブラリを探すためのパスであり、実行されるソフトウェアはこれらのパスの中から自分が使用するライブラリを検索する。もし無い場合は下記のようなエラーを出す。(tmuxの場合) tmux: error while loading shared libraries: libevent-2.0.so.5: canno…

rakeコマンドってなんだ

http://rubicle.net/rubicle_talk_1-1.htmlRubyで記述されたタスクを実行するためのツール。タスクというのは、スクリプトで記述された一連の処理のことである。rake -T を実行すると説明付きのタスクの一覧が表示される。具体的に説明をみてみると、rake ab…

setContentView は

Activity に View を表示する。引数には View を継承したクラスを渡す。XML で記述されたレイアウトファイルでも可。

textViewを中央寄せする

package com.example.xxx; import android.os.Bundle; import android.app.Activity; import android.graphics.Canvas; import android.view.Menu; import android.widget.*; import android.content.*; import android.graphics.*; import android.view.*; …

矩形を表示させる

package com.example.xxx; import android.os.Bundle; import android.app.Activity; import android.graphics.Canvas; import android.view.Menu; import android.widget.*; import android.content.*; import android.graphics.*; import android.view.*; …

vim 7.3 をソースからインストール

./configure --enable-multibyte --enable-xim --enable-fontset --disable-selinux --with-features=huge make make install --enable-multibyteマルチバイトを利用できるようにする --enable-ximIMEを利用可能にする(?) --enable-fontsetいまのところ不明(…

centos 5.9 に mercurial を入れる

epel には mercurial あるようなので yum から入れる。 yum -y install --enablerepo=epel mercurial

centos 5 にtmuxを入れる

libeventが必要なのでインストールhttp://libevent.org/wgetでもってきて./configure、make、make installncurses-develを入れる。 yum -y install ncurses-devel libevent-2.0.so.5: cannot open shared object file: No such file or directory が出たら、…

Cygwinでvimprocをmakeするには

gcc、gcc4、makeが必要な模様。

Cygwinのgitでneobundle.vimをgit cloneしようとした結果

下記のエラーが表示された。 $ git clone http://github.com/Shougo/neobundle.vim Cloning into 'neobundle.vim'... /usr/lib/git-core/git-remote-http.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or d…

ruby のインストール時にエラー

不覚にも make が無くてインストールが止まった。 yum -y install make

passenger で rails アプリケーションを動かす

動かない時の対処方法その1 vim config/environments/production.rb config.assets.compile を true に変更する。 config.assets.compile = true 動かない時の対処方法その2 rake assets:precompile

CentOS セットアップ

まずは、キーボードのレイアウトを変更Keybord -> Layouts -> Keybord model を japanese 106-key にする。Selected layouts を japan のみにする。English は消さないとだめ。ネットワークをブリッジ接続にする。「アダプタの設定」で「VirtualBox Host-Onl…

githubからgit cloneするとsslのエラーになる

git config --global http.sslVerify false

CentOS 5 を日本語環境にする

Japanese Supportをインストール。 yum -y groupinstall "Japanese Support" vim /etc/sysconfig/i18n LANG="ja_JP.UTF-8" OSを再起動して完了。