Comments (2)
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.
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)
- add JDK 17 build HOT 8
- radically simplify the build HOT 6
- Add Cats Effect 3 to the community build HOT 6
- dbuild launcher JARs seem to have gone missing HOT 3
- policy for advancing project SHAs? HOT 1
- Move the JDK 17 build off early-access, onto 17 final HOT 3
- Delete and archive the Gitter room HOT 1
- Run the build on JDK 20 HOT 15
- Upgrade to sbt 1.8.0 HOT 1
- Upgrade to JDK 20 final once Temurin is available HOT 2
- fix failing sbt 0.13 builds in 2.12 build HOT 2
- Add JDK 21 to build matrix HOT 22
- add more scalafix projects HOT 12
- scalafmt failing HOT 12
- Scaladoc generation failing in Scalafix repo after recent updates HOT 2
- Add JDK 22-ea to build matrix HOT 4
- Add Akka resolver so I can unfreeze some downstream-from-Akka repos
- Upgrade behemoths to JDK 22 final HOT 1
- Add JDK 23 to matrix
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from community-build.