Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INSTALL_COSMOS.bat for COSMOS v4 no longer works #1808

Open
YungCorn opened this issue Apr 25, 2023 · 0 comments
Open

INSTALL_COSMOS.bat for COSMOS v4 no longer works #1808

YungCorn opened this issue Apr 25, 2023 · 0 comments

Comments

@YungCorn
Copy link

The INSTALL_COSMOS.bat install script for Windows 7+ no longer works. The version of the script is 2.6, and I downloaded it from here: https://ballaerospace.github.io/cosmos-website/docs/v4/installation. I know COSMOS v4 is no longer being officially supported, but I thought I'd still open this issue just in case.

When running the script, this is the error I encountered:

Updating rubygems-update
Fetching: rubygems-update-3.4.12.gem (100%)
ERROR:  Error installing rubygems-update:
        There are no versions of rubygems-update (= 3.4.12) compatible with your Ruby & RubyGems
        rubygems-update requires Ruby version >= 2.6.0. The current ruby version is 2.5.0.
ERROR:  While executing gem ... (NoMethodError)
    undefined method `version' for nil:NilClass
Installing COSMOS gem "LATEST"...
Fetching: bundler-2.4.12.gem (100%)
ERROR:  Error installing cosmos:
        The last version of bundler (>= 1.3) to support your Ruby & RubyGems was 2.3.26. Try installing it with `gem install bundler -v 2.3.26` and then running the current command again
        bundler requires Ruby version >= 2.6.0. The current ruby version is 2.5.0.
ERROR: Problem installing cosmos gem
INSTALL FAILED
Press any key to continue . . .

It should be very easy to recreate this error. Simply try running the install script on a computer which doesn't already have COSMOS v4 installed on it.

I was able to get around the problem by modifying the INSTALL_COSMOS.bat file. I replaced this line:
call gem update --system
with the following:
call gem install bundler -v 2.3.26

The install appears to have worked with that change, in case anyone is looking for a quick fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant