
Ubuntu日本語フォーラム

ログインしていません。
まだ、Ubuntu10.04を使用しています。
SQLAlchemyという、ライブラリをインストールしようと、easy_inatallでコマンドを叩きましたが、
下記のエラーメッセージが表示されました。
The following error occurred while trying to add or remove files in the
installation directory:
[Errno 13] Permission denied: '/usr/local/lib/python2.6/dist-packages/test-easy-install-2072.pth'
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/usr/local/lib/python2.6/dist-packages/
Perhaps your account does not have write access to this directory? If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account. If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.
python2.6というライブラリの配下に、SQLAlchemyを作成しようとしているのですが、
python2.6が作成されているフォルダのアクセス権が、rootになっているため、使用できないと思います。
easy_installを使用しない方法でやったりしましたが、同じエラーが発生しました。
質問の趣旨として、アクセス権がrootのフォルダに、上述のようなことが、何とか出きるのならば、その方法を
教えて頂きたくお願いします。これが不可能であれば、回避する方法ないでしょうか?
”これは、絶対無理だよ。”という意見でも結構です。諦めがつきますので・・・(^^;)
以上、よろしくお願いします。
オフライン
ubuntuでは、rootというのは、使えいないようになっております。ubuntuソフトウェアセンターから検索窓でpython2.6 SQLAlchemy で検索するとAn intereactive high-level obuject-oriented language(version2.6)がヒットしますがこれだとダメなのかな 下の方にチェックする場所がある
オフライン
ubuntu 10.04 だと python-sqlalchemy というパッケージがありますね
[システム - システム管理] から [Synaptic パッケージ・マネージャ]を起動して、「python-sqlalchemy」で検索すれば見つかるはずなので、これをインストールしてはどうでしょうか
どうしても easy_install を使いたいなら sudo easy_install SQLAlchemy のように、頭に sudo を付けて権限を確保してください
オフライン