Closed ssallmen-pro closed 2 years ago
I even tried to go further by installing the missing pandoc but that did not help either. And, I would more prefer the Debian package to avoid the time building takes since I would need to do that quite often as my project is related to running a GitHub Actions workflow, in which I would use jo only as one small part to replace my own bash script to update some JSON configuration files.
Ubuntu doesn't seem to be up-to-speed with jo
. Homebrew is, but I suspect you might not want to pull in Yet Another Package Manager to GitHub Actions, so you're best served building from source.
The error you're getting suggests you don't have pkg-config
installed. Try apt install pkg-config
, then autoreconf -i
and ./configure
again.
Thanks @gromgit! I got it installed and working now in a plain Ubuntu docker container. I just have to try out what is the fastest and easiest way to get all things prepared to get jo
since the GitHub Actions (company local) runner that I need to use for running my workflow, where I will then need jo
, is a Docker container that is spin up from an image every time separately, and I can't add anything to the runner image itself. So, I will need to do all the installations for every workflow run in the workflow, and that has to be fast. If the runner image does not yet have all the needed stuff for building jo
from source, I will probably need to discard that idea since the installation of all the dependencies for building from source will take way too much time from the run. Build itself is fast though.
Need to check also the possibility, and speed, of installing brew
and using that to install jo
. Thanks for the hint!
Since you're playing in Docker-land, you might want to check out Homebrew's official Dockerfile, which is used by their own CI infrastructure for all Linux build stuff. You can probably substitute any user from your company's image in place of the linuxbrew
user, but the /home/linuxbrew/.linuxbrew
base directory is non-negotiable if you want to use pre-compiled Homebrew bottles instead of building from source.
I thought to try jo in one of my projects but I am not able to install the latest version of it on Ubuntu Focal. To try out the tool, first I tried by installing jo directly from Debian package in a Ubuntu docker container:
As you can see I got it installed, but the version is 1.0, not even close to the latest version. Then, I tried by installing from source in tar-ball. Since the output from that is quite long, I am attaching it as a file in here. build-jo-in-ubuntu-focal.log
As you can see, there are some warnings coming and the makefile generation is not successful. How I can get the latest version of jo installed either from Debian package or from source?