ncbi / sra-tools

SRA Tools
Other
1.11k stars 243 forks source link

how can I export to PATH #847

Closed mick42-star closed 1 year ago

mick42-star commented 1 year ago

When I ran fastq-dump without './ ' ,it will not find the command. and it will run when I use ./fastq-dump.

~ % cd /Users/sratoolkit.3.0.7-mac64/bin bin % fastq-dump zsh: command not found: fastq-dump bin % ./fastq-dump Usage: ./fastq-dump [options] [...] ./fastq-dump [options]

Use option --help for more information

./fastq-dump : 3.0.7

Then I tried to add PATH to .bash_profile with these commands export PATH=$PATH:'/Users/sratoolkit.3.0.7-mac64/bin' export PATH=$PATH:./ ~ % fastq-dump zsh: command not found: fastq-dump

It still cannot find fastq-dump in home directory.

I wonder how should I export PATH correctly

klymenko commented 1 year ago

.bash_profile is bash specific, you are running zsh.

williamtbarker commented 1 year ago

nano ~/.zshrc is what you're searching for