さくらVPS(メモリ512MB/SSD20GB)にCentOS7 x86_64をインストールしました。
その後、以下の通りコマンドを実行。
Ta-Libのインストールを試みましたが、うまくインストールができませんでした。
解決策をご教示頂きたく、よろしくお願い致します。
コマンド1
sudo yum install -y https://centos7.iuscommunity.org/ius-release.rpm
sudo yum install gcc zlib-devel bzip2 bzip2-devel readline readline-devel sqlite sqlite-devel openssl openssl-devel git
git clone https://github.com/yyuu/pyenv.git ~/.pyenv
vim .bash_profile
vimで以下を追記
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
コマンド続き
source .bash_profile
pyenv install 3.6.5
pyenv global 3.6.5
pyenv rehash
python --version
pip install --upgrade setuptools pip
pip install numpy
wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz
tar -zxvf ta-lib-0.4.0-src.tar.gz
cd ta-lib
./configure --prefix=/usr
make
sudo make install
cd ../
rm -rf ta-lib-0.4.0-src.tar.gz
rm -rf ta-lib
pip install TA-Lib
エラー
gcc: internal compiler error: Killed (program cc1) Please submit a full bug report, with preprocessed source if appropriate. See <http://bugzilla.redhat.com/bugzilla> for instructions. error: command 'gcc' failed with exit status 4 ----------------------------------------
ERROR: Command "/root/.pyenv/versions/3.6.5/bin/python3.6 -u -c 'import setuptools, tokenize;file='"'"'/tmp/pip-i nstall-2zwegtbc/TA-Lib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\ r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-g9a zqwz4/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install- 2zwegtbc/TA-Lib/
あなたの回答
tips
プレビュー