Skip to content

Instantly share code, notes, and snippets.

@ritou
Created July 17, 2012 16:14
Show Gist options
  • Save ritou/3130368 to your computer and use it in GitHub Desktop.
Save ritou/3130368 to your computer and use it in GitHub Desktop.
Ubuntuでoictestを動かすまでにやったこと
Ubuntuでoictestを動かすまでにやったこと
$ mkdir ~/oictest
$ cd ~/oictest
# ソース落とす
$ git clone git://github.com/rohe/pyoidc.git
# $ git clone git://github.com/andreassolberg/oictest.git
# oictestは自分でforkしたものを利用する
$ git clone git@github.com:ritou/oictest.git
# インストール試す
$ cd pyoidc
$ sudo python setup.py install
# そもそもいろいろ入ってないのでさっぱり動かない
$ sudo apt-get install python-setuptools
$ sudo apt-get install swig
$ sudo apt-get install python-dev
# あとでSSLV2_methodとかいうのではまるのでここ見てM2Cryptoにパッチあてる
# http://stackoverflow.com/questions/10547332/install-m2crypto-on-a-virtualenv-without-system-packages
$ mkdir ~/tmp
$ cd ~/tmp/
$ wget http://pypi.python.org/packages/source/M/M2Crypto/M2Crypto-0.21.1.tar.gz#md5=f93d8462ff7646397a9f77a2fe602d17
$ tar zxvf M2Crypto-0.21.1.tar.gz
$ cd M2Crypto-0.21.1/SWIG/
# 修正
$ vim _ssl.i
$ cd ..
$ python setup.py build
$ sudo python setup.py install
# インストール
$ cd ~/oictest/pyoidc
$ sudo python setup.py install
$ cd ~/oictest/oictest
$ sudo python setup.py install
# テスト動かした
$ cd op_config/
$ oic_flow_tests.py ryo > ryo.out
$ cat ryo.out
# 実は全然動いてなかったので修正
# https://github.com/ritou/oictest/blob/master/op_config/ryo.py
$ vim ryo.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment