Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

可否加强对linux支持.下面为在linux非Docker安装设想,有待验证 #7

Open
zhangshoug opened this issue Jun 2, 2018 · 1 comment

Comments

@zhangshoug
Copy link

安装开发环境:
apt-get install build-essential git bzip2
apt-get install libmysqlclient-dev libmysqlclient20
apt-get install libhdf5-dev libhdf5-serial-dev
apt-get install libqt5x11extras5 unrar

install Anaconda3

参考:http://rqalpha.readthedocs.io/zh_CN/latest/intro/detail_install.html#intro-detail-create-env
安装 TA-Lib
参考:https://mrjbq7.github.io/ta-lib/install.html
Linux

Download ta-lib-0.4.0-src.tar.gz and:

$ untar and cd
$ ./configure --prefix=/usr
$ make
$ sudo make install
$ pip install TA-Lib

以上为安装hikyuu,rqalpha等量化程序公共环境

install boost###是否可用系统apt-get install libboost*代替。??

tar xzvf boost_1_64_0.tar.gz
boostsource=$tmpdir/"boost_1_64_0.tar.gz"

[ -f $boostsource ] &&
tar xzvf $boostsource &&
cd boost_1_64_0 &&
./bootstrap.sh --exec-prefix=/usr/local &&
./b2 -q -j 4 threading=multi &&
./b2 install threading=multi &&
cp b2 bjam /usr/local/bin/ &&
cd .. &&
rm $boostsource

install log4cplus ###是否可用系统apt-get install liblog4cplus*代替。??

log4c="log4cplus-1.2.1-rc2"
log4cfile=$tmpdir/$log4c.tar.gz
#[ ! -f $log4cfile ] && wget -c -O $log4cfile https://sourceforge.net/projects/log4cplus/files/log4cplus-stable/1.2.1/log4cplus-1.2.1-rc2.tar.gz/download
tar -xzf $log4cfile
cd $log4c
#./configure --prefix=/usr CXXFLAGS="std=-c++11"
./configure --prefix=/usr/local CXXFLAGS=-std=c++0x
make -j 4
make install
cd ..
rm $log4cfile
rm -rf $log4c

install hikyuu ####原作者是否可做成跨平台通用的pip install hikyuu,如rqalpha,pip install rqalpha -i https://pypi.tuna.tsinghua.edu.cn/simple ???###

git clone https://github.com/fasiondog/hikyuu.git
cd hikyuu

hikyuu编译打补丁

echo ".............................. patch Jamroot"
cp Jamroot.linux Jamroot.linux.orig
patch -p0 <30_patchfile.hikyuu
echo ".............................. patch importdata.cpp"
#sed -i 's/\\///g' ./tools/importdata/importdata.cpp

./build.sh

cp Jamroot.linux.orig Jamroot.linux
rm Jamroot.linux.orig

@fasiondog
Copy link
Owner

我是希望最好pip install,这样需要把涉及的动态库直接扔在pip的包里,最方便里,也不用再编译了。不过一直没空整。

pchaos added a commit that referenced this issue Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants