informatiCup / informatiCup2022

Abfahrt! Der InformatiCup 2022
23 stars 3 forks source link

Kann Simulator nicht starten #11

Closed ErdoganSeref closed 2 years ago

ErdoganSeref commented 2 years ago

Wenn ich mittels make den Simulator starten will dann kriege ich folgende Fehlermeldung.

make rm -rf build-win build-linux build-darwin dist mkdir build-win mkdir build-linux mkdir build-darwin CGO_ENABLED=0 GOOS=windows go build -o build-win/bahn-simulator.exe /bin/sh: Zeile 1: go: Kommando nicht gefunden. make: *** [Makefile:10: dist] Fehler 127

Top-Ranger commented 2 years ago

Moin,

das zeigt für mich, dass die Programmiersprache go bei dir nicht installiert ist. Die Makefile wurde bisher nur auf Linux getestet, der Befehl go build sollte aber (wenn go installiert ist) immer funktionieren.

ErdoganSeref commented 2 years ago

Ok. Ich habe go installiert. Jetzt hat make funktioniert. Im sub directory build-linux gibt es eine bahn-simulator.exe wenn ich sie ohne Parameter ausführe kriege ich 0 als Rückgabe. Muss ich also der bahn-simulator.exe den input.txt und output.txt als Parameter übergeben?

Am Sa., 30. Okt. 2021 um 19:34 Uhr schrieb Marcus Soll < @.***>:

Moin,

das zeigt für mich, dass die Programmiersprache go https://golang.org/doc/install bei dir nicht installiert ist. Die Makefile wurde bisher nur auf Linux getestet, der Befehl go build sollte aber (wenn go installiert ist) immer funktionieren.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/informatiCup/informatiCup2022/issues/11#issuecomment-955538697, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJEFVT24IGCR24P32XUEBR3UJQ3C5ANCNFSM5HBJKYSA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

bitflipp commented 2 years ago

Kommandozeilenparameter --help.

ErdoganSeref commented 2 years ago

Ok. Jetzt hat es funktioniert. Jetzt verstehe ich auch wofür das Tool da ist. Danke.

Am Sa., 30. Okt. 2021 um 20:37 Uhr schrieb Philipp Naumann < @.***>:

Kommandozeilenparameter --help.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/informatiCup/informatiCup2022/issues/11#issuecomment-955575083, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJEFVT2QIAP6WPBONKTDLA3UJRCPZANCNFSM5HBJKYSA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.