steveicarus / iverilog

Icarus Verilog
https://steveicarus.github.io/iverilog/
GNU General Public License v2.0
2.71k stars 513 forks source link

Changing Fixed VVP Path for Prebuilt Icarus Verilog on a Restricted System #1135

Open Nado15 opened 2 weeks ago

Nado15 commented 2 weeks ago

Hi!

I downloaded a prebuilt version of Icarus Verilog because I am working on a restricted machine where I don't have sudo rights. Specifically, I can't write to directories like /bin, /opt, etc.

I got the prebuilt version from this GitHub repository.

I was able to compile some Verilog code using this prebuilt version, but I am unable to run the compiled code. I added all executables to $PATH, but I encounter the following error when I try to run the code:

bash: ./top: /opt/icarus_verilog/bin/vvp: bad interpreter: No such file or directory

As I mentioned, I can't copy vvp to /opt nor can I create symlinks.

I tried the following solution suggested by ChatGPT:

export VVP=/path/to/vvp

However, this did not resolve the issue. Is there another solution to this problem?

caryr commented 2 weeks ago

You should be able to compile from source and use a local directory for the bin, lib, etc. Of course you need to have the appropriate development tools available.

Also from what you have shown, have you tried running the compiler output using vvp <output file from the compiler>. You should also be able to update the compiler output to point to the actual vvp executable.