LangProc / langproc-2021-lab

2 stars 4 forks source link

histogram: permission denied #68

Closed JosiahBegley720 closed 2 years ago

JosiahBegley720 commented 2 years ago

./test_lexer.sh: line 41: ./histogram: Permission denied in stderr.txt

johnwickerson commented 2 years ago

You could try a chmod +x histogram, to make sure that the histogram program is actually executable.

JosiahBegley720 commented 2 years ago

i have tried that

JosiahBegley720 commented 2 years ago

my return value is '0: command not found'. which suggests the operation was not successful as well as the fact that sterr remains the same

JosiahBegley720 commented 2 years ago

It could be due to the fact that #include <unistd.h> is errored in histogram_lexer.yy.cpp which results in histogram.hpp not correclty producing an executable histogram file. But this package should been downloaded when i set up the environment. I have the text editor open in windows, so i was assuming it was just errored in the windows environment due to it being a linux package, so i have ignored it up to this point as the package should have been installed in my VM environemt

JosiahBegley720 commented 2 years ago

no matter what i have done, the header #include<unistd.h> is causing an error. I believe i have installed the correct environment and packages

ymherklotz commented 2 years ago

Make sure that you are using vagrant. Then, about the Permission denied issue, you can check #11 which might provide a work around.