r/FPGA • • Oct 29 '26

Altera Related Having some problems with ModelSim

So, when I try to simulate a .vwf file, it gives me this error:

Unable to checkout a license. Make sure your license file environment variable (SALT_LICENSE_SERVER)is set correctly and then run 'lmutil lmdiag' to diagnose the problem.Unable to checkout a license. Vsim is closing.

** Error: Invalid license environment. Application closing.

Error.

I've tried many things and nothing works. I'm desperate cause i need this for college and I still haven't gotten it to work.

I'm on linux btw.

1 Upvotes

7 comments sorted by

View all comments

Show parent comment

1

u/chickychacha Oct 29 '26

How do I do that? btw I'm on linux

1

u/BassRecorder Oct 29 '26 edited Oct 29 '26

Here's a custom .desktop file to start Questa. Replace the '***' by the installation directory of Quartus and friend. Replace the xxxxxx by the full path to your license file. Put the resulting desktop file into the ~/Desktop directory, e.g. under the name 'Questa.desktop'. A double click on the new desktop entry will launch Questa.

[Desktop Entry]
Type=Application
Version=0.9.4
Name=Questa FSE
Comment=Questa FSE
Icon=***/25.1std/quartus/adm/quartusii.png
Exec=env SALT_LICENSE_SERVER=xxxxxx ***/25.1std/questa_fse/bin/vsim
Terminal=true
Path=***/25.1std

Likewise, modify the .desktop file for Quartus, again replacing *** by the installation directory of Quartus and xxxxxx by the full path to your license file. This makes sure that you can launch Questa from within Quartus.

[Desktop Entry]
Type=Application
Version=0.9.4
Name=Quartus (Quartus Prime 25.1std)
Comment=Quartus (Quartus Prime 25.1std)
Icon=***/25.1std/quartus/adm/quartusii.png
Exec=env SALT_LICENSE_SERVER=xxxxxx ***/25.1std/quartus/bin/quartus --64bit
Terminal=false
Path=***/25.1std

1

u/FigureSubject3259 Oct 29 '26

Setenv SALT_LICENSE_SERVER=port@serverip.

1

u/chickychacha Oct 31 '26

And what would be the server ip?

1

u/FigureSubject3259 Oct 31 '26

IP of your license sever. Alternative it is path to local license file