Where should I install packages on WSL
0
0
Entering edit mode
3.5 years ago
n.tear ▴ 80

When using linux the usual location for downloading and installing packages locally is /usr/local

Windows Subsystem for Linux does not have this folder.

What is an appropriate equivalent folder that I should use when using WSL?

Folders I am considering are: /mnt/c/Users/Natha/AppData/Local or /home/nattyht perhaps these are both incorrect folders to use...?

I am using the ubuntu subsytem downloaded from the microsoft store.

For reference I am looking to download and install the package 'htslib' (http://www.htslib.org/download/) for use with 'Majiq' (https://majiq.biociphers.org/)

Many thanks in advance,

Nathan

WSL linux htslib • 4.8k views
ADD COMMENT
0
Entering edit mode

That is odd. You should have a /usr/local folder in your ubuntu install. If not you can create one.

ADD REPLY
0
Entering edit mode

Sorry I think I found the /usr/local folder.

ADD REPLY
0
Entering edit mode

Have you checked to see if the folder is there? What does ls -l /usr/local show?

ADD REPLY
0
Entering edit mode
(base) nattyht@MATEBOOKPRO:/usr/local$ ls -l /usr/local/
total 0
drwxr-xr-x 1 root root 4096 Jul 25  2018 bin
drwxr-xr-x 1 root root 4096 Jul 25  2018 etc
drwxr-xr-x 1 root root 4096 Jul 25  2018 games
drwxr-xr-x 1 root root 4096 Jul 25  2018 include
drwxr-xr-x 1 root root 4096 Jul 25  2018 lib
lrwxrwxrwx 1 root root    9 Jul 25  2018 man -> share/man
drwxr-xr-x 1 root root 4096 Jul 25  2018 sbin
drwxr-xr-x 1 root root 4096 Jul 25  2018 share
drwxr-xr-x 1 root root 4096 Jul 25  2018 src

is this the correct location?

ADD REPLY
0
Entering edit mode

Yes. /usr/local does not have to be the location where packages are installed. You will need to make sure the directory where the package is installed is in $PATH, if you install it somewhere else.

Don't use any location under /mnt since those are windows partitions mounted on linux side.

ADD REPLY

Login before adding your answer.

Traffic: 3314 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6