大家好,我正在尝试安装 IB api 软件,但我遇到了一个问题,我不知道是什么!!
这里是安装过程:
- 从 https://www.interactivebrokers.com/en/index.php?f=16040 下载交易平台
- 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
有什么帮助吗?
最佳答案
你在防火墙后面吗?设置你的代理
导出 https_proxy=proxy:port 导出 http_proxy=代理:端口
否则只需手动安装 jvm 即可满足该要求。
您也可以将代理添加到 wget 命令。
关于java - 在 ubuntu 16.04 上安装 TWS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47237436/