IbcAlpha / IBC

Automation of Interactive Brokers TWS. You can download the latest release here: https://github.com/ibcalpha/ibc/releases/latest
GNU General Public License v3.0
1.04k stars 181 forks source link

Stable IBGateway 10.12 for Linux changed the installed path #174

Closed stock888777 closed 2 years ago

stock888777 commented 2 years ago

Today, the stable IBGateway 10.12 for Linux is released. Its installed path is changed.

https://github.com/IbcAlpha/IBC/blob/3.13.0/resources/gatewaystart.sh#L26 should be

TWS_PATH=~

https://github.com/IbcAlpha/IBC/blob/3.13.0/resources/scripts/ibcstart.sh#L231 should be

    if [ "$tws_path" = "" ]; then tws_path=~ ;fi

https://github.com/IbcAlpha/IBC/blob/3.13.0/resources/scripts/ibcstart.sh#L249 should be

    gateway_vmoptions="${tws_path}/ibgateway/ibgateway.vmoptions"
    gateway_jars="${tws_path}/ibgateway/jars"
    gateway_install4j="${tws_path}/ibgateway/.install4j"

But these changes cannot coexist with IBGateway 9.81. And many files are created in the home directory.

rlktradewright commented 2 years ago

I don't know where you got the stable Gateway 10.12 from: I can only find the 'latest' 10.16 version. I'd be grateful if you could tell me where to find it.

So I installed Gateway10.16 on a virgin Ubuntu 20.04 system, and it installed in exactly the same place as it always has, ie:

~/Jts/ibgateway/1016

I installed and configured IBC and it ran perfectly.

I see no reason to believe that 10.12 would install differently. I suggest you uninstall everything and start again.

stock888777 commented 2 years ago

I downloaded it from here.

The stable is 10.12.2l and the latest is 10.16.1f .

I installed using this script.

cd ~
wget --quiet https://download2.interactivebrokers.com/installers/ibgateway/stable-standalone/ibgateway-stable-standalone-linux-x64.sh
chmod +x ibgateway-stable-standalone-linux-x64.sh
./ibgateway-stable-standalone-linux-x64.sh -q
stock888777 commented 2 years ago

Install4J has GUI mode, console mode, and unattended mode. https://www.ej-technologies.com/resources/install4j/help/doc/installers/installerModes.html

I found that this is the problem of the unattended mode. GUI and console mode do not have this problem.

I can install it correctly by this.

./ibgateway-stable-standalone-linux-x64.sh -q -dir ~/Jts/ibgateway/1012

Should I close this issue?

rlktradewright commented 2 years ago

[Thanks for that link to the Gateway download. Odd though, the only way I can find Gateway via the website navigation (ie not via search) is using the Login button and then selecting 'Download IB Gateway', and that only offers the 'latest' version. What am I missing?]

Ah, well done there!

I had just spent quite a while investigating this and coming to exactly the same conclusions as you, except that I failed to discover the -dir argument. I was just about to submit my comment when yours appeared.

Just for the record, the solution I came up with was to add an extra command after the install:

cd ~
mv ibgateway Jts/ibgateway/1012

This gets everything in the right place for IBC, but unfortunately it requires knowledge of the Gateway version number being installed, which is not ideal (mind you so does your better solution).

I find it somewhat annoying that the default install location is different between the GUI mode and the unattended mode.

By all means close the issue if you're happy with things now.

stock888777 commented 2 years ago

I find it somewhat annoying that the default install location is different between the GUI mode and the unattended mode.

I hope Interactive Brokers will fix this.

By all means close the issue if you're happy with things now.

I will close.