This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-07-09
Channels
Trying & failing to install Clojure on a fresh x86 EC2 machine running base Ubuntu. Getting the error, "formula cannot be installed from bottle":
$ brew install clojure/tools/clojure
Running `brew update --auto-update`...
==> Fetching dependencies for clojure/tools/clojure: rlwrap, libyaml, gperf and ruby
==> Fetching rlwrap
...
==> Fetching clojure/tools/clojure
==> Downloading
Already downloaded: /home/ubuntu/.cache/Homebrew/downloads/a68761ec23820e70ffbd2daae161b8c27c9f5e4e4ea58ee69259a4fcca15804e--clojure-tools-1.11.1.1347.tar.gz
==> Installing clojure from clojure/tools
Error: The following formula cannot be installed from bottle and must be
built from source.
clojure
Install Clang or run `brew install gcc`.
Tried reinstalling gcc but no dice. Any ideas?Managed to get it working with the Linux install script: https://clojure.org/guides/install_clojure#_linux_instructions
Linuxbrew
i haven't seen brew be recommending way of installing any piece of software to date, other than on macs.
ubuntu basically has per software install instructions, you gotta follow those for every app/lib you install
apt will have out of date stuff, snap has it's own issues (sometimes it's good enough). and most systems require docker or a custom install script that they provide
I would use the install script probably from an ansible playbook or something like that for setting up an ec2 server. AWS has support for that with SSM ...
@U0LAJQLQ1 because it's recommended on the official Clojure installation instructions: https://clojure.org/guides/install_clojure#_linux_instructions