This is a test version of Biostars. For the public version, visit https://www.biostars.org.
VG Installation with Ubuntu

Hello,

I am following the vg installation guide for Linux on the README file (I am using Ubuntu 20.04). I cloned the repo and installed dependencies. However the command

. ./source_me.sh && make

Leads to the following error:

. ./source_me.sh && cd deps/sdsl-lite && BUILD_PORTABLE=1 CXXFLAGS=" -O3 -Werror=return-type -std=c++14 -ggdb -g -I /home/madhatter5/vg/include -I/home/madhatter5/vg/include/dynamic  -fopenmp -msse4.2" ./install.sh /home/madhatter5/vg
/bin/sh: 11: export: Files/WindowsApps/CanonicalGroupLimited.Ubuntu20.04onWindows_2004.2021.610.0_x64__79rhkp1fndgsc:/mnt/c/Program: bad variable name
make: *** [Makefile:447: lib/libsdsl.a] Error 2

I was wondering if anyone knows the source of the error?

Thank you!

vg vgteam

1 answer

The error probably comes from this line in source_me.sh:

export PATH=`pwd`/bin:`pwd`/scripts:$PATH

Your path seems to contain directories with whitespace in their names. If you put the new path in double quotes, the immediate problem should go away. However, there could be any number of similar issues in vg and its submodules, because people don't always handle whitespace in file/directory names properly.

Log in to answer this question.