3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Python3をさくらサーバー(FreeBSD)にインストール

Last updated at Posted at 2013-10-19

#1.Python3のインストール


Bash
mkdir ~/local
mkdir ~/local/src

cd ~/local/src
wget http://python.org/ftp/python/3.3.1/Python-3.3.2.tar.bz2
tar -xjf Python-3.3.2.tar.bz2
cd Python-3.3.2
./configure --prefix=$HOME/local/python/
make && make install

#2. ~/.cshrcの書き加え


Bash
cd
vi ~/.cshrc
vi
#以下を追加
set path = ($HOME/local/python/bin)
setenv PYTHON $HOME/local/python/lib

書き加えることで、"python3"とコマンド入力するだけで、python3のインタプリタが起動する。

##参考にしたサイト
http://www.mihr.net/comp/sakura.html

3
3
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?