LoginSignup
1
0

More than 5 years have passed since last update.

PidoraにPythonをインストールする。

Last updated at Posted at 2016-12-27

動機

RaspberryPiにPidoraをインストールしたブツに、Pythonが欲しくなったので、作りました。

仕様

  • すべて,/optにぶち込みます。
  • 終了後の掃除動作までは作ってないです。(Raspberry Piがいつ落ちるかわからないため)

動作確認環境

  • Raspberry Pi 1 Model B+
  • Pidora release 2014 (Raspberry Pi Fedora Remix) URL:http://pidora.ca/

ソースコード

bashスクリプトです。
必要になったら、他の機能を追記します。

install_python
#!/usr/bin/env bash

VERSION=3.6.0

yum groupinstall "Development tools" -y
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel -y

cd /opt/
curl -O https://www.python.org/ftp/python/${VERSION}/Python-${VERSION}.tgz
tar zxf Python-${VERSION}.tgz

cd Python-${VERSION}
./configure --prefix=/opt/local
make && make altinstall

参考

1
0
0

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
1
0