Giter VIP home page Giter VIP logo

Comments (2)

SethTisue avatar SethTisue commented on July 21, 2024

I would prefer to use Coursier to manage the installation of scala-cli, but the capability to do that only recently landed, in Coursier 2.1.0-M1. We have an older version install, but cs update won't install a milestone by default. and also it looks like coursier is preferred to cs these days, but our starting point was having cs installed, so to get on the latest we ssh in as jenkins and do:

cs install coursier:2.1.0-M1
coursier uninstall cs
coursier install --contrib scala-cli

and then if scala-cli version shows (as of Dec 7 2021 anyway) 0.0.9, Bob's your uncle!

===

I don't think it should be necessary, but if coursier wants to make a native image for something itself, you'll need to first ssh to the behemoth as admin and:

sudo apt-get install build-essential

(and maybe throw in libz-dev if you see errors about missing zlib headers? not sure if it's needed)

from community-build.

SethTisue avatar SethTisue commented on July 21, 2024

gah, one annoying thing here is that you can't #!/usr/bin/env -S scala-cli shebang <args> because our coreutils on the behemoths is too old for env to support -S (and it definitely needs it in order to pass an argument such as shebang)

I don't feel confident attempting to upgrade coreutils systemwide (if doing so is even possible without a full OS upgrade)

so here's what I worked out. let's build a recent coreutils and then copy the env binary into /usr/local/bin

that means in order to run the build locally you have to also do ln -s /usr/bin/env /usr/local/bin/env, but oh well

here's the steps. ssh to the behemoth as jenkins, then:

wget http://ftp.gnu.org/gnu/coreutils/coreutils-8.32.tar.xz && tar xf coreutils-8.32.tar.xz
cd coreutils-8.32
./configure
make

then ssh to the behemoth as admin and:

sudo cp ~jenkins/coreutils-8.32/src/env /usr/local/bin/env

I have now done this on all 3 behemoths.

from community-build.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.