-
Notifications
You must be signed in to change notification settings - Fork 425
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
Singularity 3.5.3 mconfig not recognizing installed go #5099
Comments
Please can you provide an |
Hi David,
Sure, here is my PATH setting:
markc@mark-vm:~/singularity$ echo $PATH/opt/mpich/bin:/usr/local/go/bin:/home/markc/miniconda3/bin:/opt/mpich/bin:/usr/local/go/bin:/home/markc/miniconda3/bin:/home/markc/.local/bin:/opt/mpich/bin:/usr/local/go/bin:/home/markc/miniconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/markc/miniconda3/bin
And the output from go env is the following:
markc@mark-vm:~/singularity$ go envGO111MODULE=""GOARCH="amd64"GOBIN=""GOCACHE="/home/markc/.cache/go-build"GOENV="/home/markc/.config/go/env"GOEXE=""GOFLAGS=""GOHOSTARCH="amd64"GOHOSTOS="linux"GOINSECURE=""GONOPROXY=""GONOSUMDB=""GOOS="linux"GOPATH="/home/markc/go"GOPRIVATE=""GOPROXY="https://proxy.golang.org,direct"GOROOT="/usr/local/go"GOSUMDB="sum.golang.org"GOTMPDIR=""GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"GCCGO="gccgo"AR="ar"CC="gcc"CXX="g++"CGO_ENABLED="1"GOMOD="/home/markc/singularity/go.mod"CGO_CFLAGS="-g -O2"CGO_CPPFLAGS=""CGO_CXXFLAGS="-g -O2"CGO_FFLAGS="-g -O2"CGO_LDFLAGS="-g -O2"PKG_CONFIG="pkg-config"GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build235491133=/tmp/go-build -gno-record-gcc-switches"
I can see where to go from here. I downloaded the go source tarball for Version 1.14 again and decompressed it in my home directory (so $HOME/go exists as the GOPATH variable expects). I can now successfully run mconfig.
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
From: David Trudgian<mailto:notifications@github.com>
Sent: Friday, March 6, 2020 10:01 AM
To: sylabs/singularity<mailto:singularity@noreply.github.com>
Cc: Mark Cheeseman<mailto:adeytown75@outlook.com>; Author<mailto:author@noreply.github.com>
Subject: Re: [sylabs/singularity] Singularity 3.5.3 mconfig not recognizing installed go (#5099)
Please can you provide an echo $PATH and go env output?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<https://github.com/sylabs/singularity/issues/5099?email_source=notifications&email_token=AC65CT3N6PAWGUG5H27OKO3RGE3A5A5CNFSM4LDE7XEKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEOCIWZA#issuecomment-595888996>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AC65CT37ZRSIHUJVVHFCUDTRGE3A5ANCNFSM4LDE7XEA>.
|
for automated installs of singularity HOME/GOCACHE/GOPATH/TMPDIR should all be defined before |
Seeing same configuration check issue.
|
I am having the same problem on Ubuntu 18.04 |
use the exact version specified, not the latest.
…On Thu, Sep 10, 2020 at 4:32 PM Rohit Farmer ***@***.***> wrote:
I am having the same problem on Ubuntu 18.04
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5099 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAK5KTNGWQNWR2WYPG26J43SFEZUDANCNFSM4LDE7XEA>
.
|
I am exactly following this tutorial https://sylabs.io/guides/3.5/user-guide/quick_start.html#quick-installation-steps from sylabs.io |
Thanks @steveheistand I should have paid attention to your comment more, that fixed my problem working on an Azure VM for fresh Singuarity installs. |
I'm a similar boat to @rohitfarmer, I'm following the same tutorial and getting the same error. I'm trying to install singularity 3.7.2 on a VM instance of Ubuntu 20.04.2 LTS and getting the following
Here's my output of go env
and echo $PATH
Can anyone help? Thanks! |
user exact version specified, NOT the latest |
If someone faces this issue, follow this installation guide.
|
Hey all! I just lost like 4 hours due to this problem and I wanted to leave something behind so that others don't go thru the same pain. I got the dreaded
I came here. I ran those instructions above like 3 times. But they didn't do it. My problem was that I was running a "security hardened linux" (CentOS 7) that did not allow execution of code from the
In my case this happened because |
Hi all! For me the only thing that works was use recursive cloning of syngularity files.
Another problem I faced was related to Seccomp, it was necessary to install it by using: Good luck! |
I recently had the same problem, so I had to completely uninstall GO and reinstall it following the procedure on Singularity docs. It worked afterward. |
In my case Go compiler was not found because of
before running the This works with Singularity v.3.9.8, Go v.1.18.1 (OS=linux ARCH=amd64) |
I'm having the same issue trying to install Singularity in WSL 2 on Windows 11.
|
Since that's singularity-ce please make a new issue at https://github.com/sylabs/singularity/issues. |
We are using Ansible role to install singularity in a VM with /tmp mounted as noexec, during our automated installations we came across this similar error "checking: host Go compiler (at least version 1.13) ... not found!", "mconfig: could not complete configuration". As a workaround we are using environment variable TMDIR: /var/tmp in the playbook as below, this solved the above error in our automated singularity installations.
|
I don't see how that message could be related to the setting of TMPDIR |
Had similar issue with singularity-ce 3.10 installation on WSL and I don't belive it's a singularity issue. (@dylanmartin) user:~/singularity-ce-3.10.2$ go version
go version go1.19.2 linux/amd64 Solution: |
This piece must be attached to the official installation instructions! |
What do you mean? That is based on the (old) official installation instructions. |
Thanks a lot. you saved me from a lot of headach :) |
@Najmabms What did you find here that was more helpful than the official instructions in INSTALL.md? |
I am not an expert bioinformatition. Most of the time pass while I am trying to install the program then using it. Honestly, most of the problem fix mentioned above, I did not understand it. I wanted to use nf-core so I had to install Singularity then Nextflow and I followed the instructions but when something works the other one do not. First GO did not work well so I did not get the binary files and I do not understand why. When I got that fixed wget stopped working when I was trying to fix GO and I did not know why again. I removed every thing and start from scratch. Then I got everything installed but when I run the test command I get errors that did not make sense and finally I got to understand it's version problem. What I want to say from all this is that it took me 2 full working days just to install Singularity, Nextflow and nf-core even though I followed the tutorial. I googled a lot until it was finally installed and running and I honestly don't know what fixed it. I just think it should not take this much time. May be the tutorial need a revision |
I'm afraid I would need more specific information about what exactly failed in order to make any improvements to the instructions. I don't even know what tutorial you are talking about. If it's from Nextflow or nf-core, you would have to let the owners of those projects know. |
I was trying to use nextflow on a redhat server. I followed this website: https://singularity-tutorial.github.io/01-installation/ I got to this step: ./mconfig $ cd singularity I could not move forward after that, I think because of libssl. When I checked I found it in my system but the terminal says it cannot find it. This is the output from the terminal: Unable to find the libssl, need package openssl-devel (libssl-dev on Debian/Ubuntu) (base) [parasitology1@cphl-lab-srv singularity]$ whereis libssl (base) [parasitology1@cphl-lab-srv singularity]$ whereis openssl (base) [parasitology1@cphl-lab-srv singularity]$ cd builddir/ (base) [parasitology1@cphl-lab-srv builddir]$ make (base) [parasitology1@cphl-lab-srv builddir]$ sudo make install I went back and tried to install openssl-devel again but still things did not work so I deleted everything and started fresh. In my second trail wget did not work. I thing because of some thing I did when I tried to fix the first problem but I am not sure what was it. It keeps giving me this error. (base) [parasitology1@cphl-lab-srv noTrimming]$ wget I checked for the file if it present and I copied it in my /usr/local/lib files and I am still getting the same error. (base) [parasitology1@cphl-lab-srv noTrimming]$ ls -al /usr/local/lib/ | grep -E "libcryp|libssl" Fortunately, wget command is used to fetch files that I already have. so I continue with the files that I downloaded them when wget was working and what ever I needed next I used curl for it. |
Oh I had not heard of that site before. Maybe @GodloveD can comment. That website probably ought to have some disclaimers on the front page to explain its limitations. It is certainly outdated. In your particular failure case, that wget error makes it look like the operating system is not properly installed. What is the host operating system? It's surprising that you got it to work with the instructions in this issue but not the other instructions. I think it may have just been a coincidence that these are the instructions you tried when you had the operating system in a good condition. The official instructions are in INSTALL.md with the source code. |
Yeah that site is definitely outdated. I can try to bring it up to speed if I have time but no promises. PRs welcome! 😸 |
I am working on a redhat server. I think I created this problem when I was
trying to get nextflow and it dependencies working.
…On Wed, Nov 9, 2022 at 9:23 PM DrDaveD ***@***.***> wrote:
Oh I had not heard of that site before. Maybe @GodloveD
<https://github.com/GodloveD> can comment. That website probably ought to
have some disclaimers on the front page to explain its limitations. It is
certainly outdated.
In your particular failure case, that wget error makes it look like the
operating system is not properly installed. What is the host operating
system? It's surprising that you got it to work with the instructions in
this issue but not the other instructions. I think it may have just been a
coincidence that these are the instructions you tried when you had the
operating system in a good condition. The official instructions are in
INSTALL.md with the source code.
—
Reply to this email directly, view it on GitHub
<#5099 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWW5A2RMPLMAL2TWHDU3XZDWHPMZZANCNFSM4LDE7XEA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Thanks to PeterMcGor! It works to solve the problems which took me several days to overcome. It's really nice to have your kind help! |
This worked for me. Only when I installed go 1.17, mconfig executed successfully. |
For my hardened Linux image, setting the |
Yes I don't think that |
I strongly suggest you to check the version of Go, if someone has this error report since there is a minimum version requirement. Remember to set the correct version as you need. |
@bihengliu did you figure it out? I am having the same issue |
@lucyintheskyzzz this repository is closed. If you are trying to build sylabs singularity please make a new issue at https://github.com/sylabs/singularity, otherwise make a new issue at https://github.com/apptainer/apptainer. |
I am trying to install Singularity 3.5.3 on an Ubuntu 18.04 VM instance. I have downloaded and installed go Version 1.13 and the Singularity source tarball on Github. When I try running ./mconfig, I get the error:
markc@mark-vm:~/singularity$ ./mconfig
Configuring for project `singularity' 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.13)... not found!
mconfig: could not complete configuration
I have updated both my PATH and LD_LIBRARY_PATH environment variables to include the relevant directories for Go. I have also tried using the newest go Version 1.14 as well without success.
The text was updated successfully, but these errors were encountered: