VG Installation with Ubuntu
1
0
Entering edit mode
3.3 years ago
jdrubin • 0

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.1k views
ADD COMMENT
0
Entering edit mode

are you compiling on Windows ?

ADD REPLY
2
Entering edit mode
3.3 years ago
Jouni Sirén ▴ 470

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.

ADD COMMENT
0
Entering edit mode

Ah, I see. Thanks!

ADD REPLY

Login before adding your answer.

Traffic: 2776 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