大家好,我试图安装IB api软件,但我面临一个问题,我不知道是什么!!
安装过程如下:
从https://www.interactivebrokers.com/en/index.php?f=16040下载TWS
chmod u+x tws-latest-linux-x64.sh
./tws-latest-linux-x64.sh版本
面临的错误:
No suitable Java Virtual Machine could be found on your system.
Downloading JRE with wget ...
--2017-11-11 13:26:12-- https://download2.interactivebrokers.com/installers/jres/linux-x64-1.8.0_152.tar.gz
Resolving download2.interactivebrokers.com (download2.interactivebrokers.com)... failed: No address associated with hostname.
wget: unable to resolve host address ‘download2.interactivebrokers.com’
Unpacking JRE ...
gzip: jre.tar.gz: unexpected end of file
tar: ../jre.tar: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
Starting Installer ...
./tws-latest-linux-x64.sh: 613: ./tws-latest-linux-x64.sh: /home/user1/Downloads/tws-latest-linux-x64.sh.8674.dir/jre/bin/java: not found
有什么帮助吗?
最佳答案
你在防火墙后面吗?设置代理
export https_proxy=proxy:端口
export http_proxy=proxy:端口
否则,只需手动安装jvm来满足这个需求。
也可以将代理添加到wget命令中。