在ubuntu 16.04上安装TWS

时间:2017-11-11 11:32:36

标签: java linux ubuntu interactive-brokers

大家好,我正在尝试安装IB api软件,但我遇到了问题,我不知道是什么!!

这里的安装过程:

面临的错误:

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

任何帮助?

1 个答案:

答案 0 :(得分:0)

你是否在防火墙后面?设置代理

export https_proxy = proxy:port export http_proxy = proxy:port

否则只需手动安装jvm即可满足该要求。

您也可以将代理添加到wget命令。