v icon indicating copy to clipboard operation
v copied to clipboard

Solutions to some build problems

Open zac-garby opened this issue 7 years ago • 6 comments

To use V on Mac, I had to:

  • Move the v directory into ~/code
  • To print something in the REPL, I had to use println, which crashed it (couldn't find stdio.h). Then, I had to manually build the temporary REPL file in the filesystem with clang to make it work

zac-garby avatar Jun 22 '19 18:06 zac-garby

Also, when trying to import something, I get unexpected token: import. Making me think that the reason importing isn't allowed in the playground isn't due to security problems.

zac-garby avatar Jun 22 '19 18:06 zac-garby

You also need to create /var/tmp/vlang0.0.12/ directory

Undumendil avatar Jun 22 '19 18:06 Undumendil

In my case, it was created for me.

zac-garby avatar Jun 22 '19 18:06 zac-garby

i got a segmentation fault when it was in ~/code

[email protected]:/Users/32350/code/v/compiler git:(master*) $ ./vc -o v .
[1]    11900 segmentation fault  ./vc -o v .

hhhapz avatar Jun 22 '19 19:06 hhhapz

You also need to create /var/tmp/vlang0.0.12/ directory

This creates a new error for me:

sh: /var/tmp/vlang0.0.12//vrepl: No such file or directory

Bowero avatar Jun 22 '19 19:06 Bowero

Should be correct since 0.1 version. Try to git pull and rebuild the compiler.

AurelienFT avatar Jun 24 '19 17:06 AurelienFT