I am trying to install NextFlow on a Linux Unbutu 22.0.4 machine, following this guide – https://www.nextflow.io/docs/latest/install.html
I have ran everything as described in the guide, with Java version 17.0.10 installed correctly. Following that guide, I have copied the problematic steps below.
When I run
chmod a+x /usr/local/bin/nextflow
I get the output
chmod: changing permissions of '/usr/local/bin/nextflow': Operation not permitted
When I run
sudo chmod a+x /usr/local/bin/nextflow
I get no response from the terminal
For the final check, when I run
nextflow info
I get the response
bash: /usr/local/bin/nextflow: Permission denied
When I run
nextflow info
I get this
/usr/local/bin/nextflow: line 289: java: command not found
NOTE: Nextflow needs a Java virtual machine to run. To this end:
- make sure a `java` command can be found; or
- manually define the variables JAVA_HOME to point to an existing installation; or
- install a Java virtual machine, for instance through https://sdkman.io (read the docs);
- for more details please refer to the Nextflow Get Started page at http://docs.nextflow.io.
NOTE: Nextflow is trying to use the Java VM defined by the following environment variables:
JAVA_CMD: java
NXF_OPTS:
Apologies if any of this is super basic, this is the first time I have set up a linux environment from scratch so I am learning this as I go along! I am a little stumped as to what the issue is here, any pointers would be massively appreciated!
Sam Prudence is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.