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

error installing singularity #2814

Open
karthickbrlab opened this issue Apr 10, 2024 · 3 comments
Open

error installing singularity #2814

karthickbrlab opened this issue Apr 10, 2024 · 3 comments

Comments

@karthickbrlab
Copy link

Hi
kindly help me to sort this out
make -C builddir
make: Entering directory '/home/ubuntu/go/src/github.com/sylabs/singularity-3.8.7/builddir'
/bin/sh: 1: /home/ubuntu/go/src/github.com/sylabs/singularity-3.8.7/scripts/go-generate: Permission denied
make: *** [Makefile:165: /home/ubuntu/go/src/github.com/sylabs/singularity-3.8.7/internal/pkg/buildcfg/config.go] Error 126
make: Leaving directory '/home/ubuntu/go/src/github.com/sylabs/singularity-3.8.7/builddir'

@karthickbrlab karthickbrlab changed the title error installinng singularity error installing singularity Apr 10, 2024
@tri-adam
Copy link
Member

Hi @karthickbrlab, please follow the instructions in https://github.com/sylabs/singularity/blob/main/INSTALL.md if you wish to install from source. Also note that Singularity 3.8.7 is very old, I would recommend updating to the latest release (https://github.com/sylabs/singularity/releases). Depending on the version of Ubuntu you are running, a pre-built .deb may also be available in the releases section.

@karthickbrlab
Copy link
Author

karthickbrlab commented Apr 11, 2024

Hi
My ubuntu version is Ubuntu 22.04.3 LTS - jammy.
I have installed the newer version of singularity 4.1.2..but im unable to configure, as host go compiler not found. although i have tried 1.21.8 as well as the recent go version 1.22.2.

$ go version
go version go1.22.2 linux/amd64

./mconfig
Configuring for project `singularity-ce' with languages: C, Golang
=> running pre-basechecks project specific checks ...
=> running base system checks ...
checking: host C compiler... cc
checking: host C++ compiler... c++
checking: host Go compiler (at least version 1.20)... not found!
mconfig: could not complete configuration

IS THERE ANY VERSION SPECIFICITY?

@tri-adam
Copy link
Member

OK, that looks like a problem with your Go installation. The command that is run by config to check for the Go compiler is:

$ go run mlocal/checks/version.go go1.20
Found Go release tag go1.20.

Running that might shed some light on why the check is failing.

The most common thing that causes that check to fail is having upgraded Go over a previous installation rather than removing the old installation first. It might be worth re-installing Go following the instructions at https://go.dev/doc/install to rule that out.

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

2 participants