Community
cancel
Showing results for 
Search instead for 
Did you mean: 
MTett1
Beginner
2,840 Views

Installing Quartus Lite 20.1 on Ubuntu 20.04

I am trying to install Quartus Lite 20.1 on my ubuntu 20.04 but then I get this error which I have no idea on how to fix it.

Error: cannot find "/opt/intelFPGA_lite/20.1/modelsim_ase/bin/../linux_x86_64/vsim"

0 Kudos
6 Replies
2,830 Views

Hi.

You could check the below links for ways of fixing the error. 
Let me know if it helps. 

A Guide on Getting ModelSim to Work on Linux 

ModelSim Linux installation 

MTett1
Beginner
2,824 Views

@RichardTanSY_Intel

I have attached attached the vsim file below which is quite different from the previous versions of Modelsim. For example this `vco="linux_rh60" ` no longer exist in the current ModelSim version.

MTett1
Beginner
2,793 Views

@RichardTanSY_Intel 

mode=${MTI_VCO_MODE:-"32"}

arg0="$0"
cmd=`basename "$arg0"`

uname=`uname`
utype=`uname -r`
umach=`uname -m`

case $uname in
AIX)
islink=-L
;;
CYGWIN_NT* | MSYS_NT*)
islink=-h
;;
Win*)
uname=CYGWIN_NT
islink=-h
;;
*)
islink=-h
;;
esac

while [ $islink "$arg0" ] ; do
x=`/bin/ls -ld "$arg0"`
x=`expr "$x" : '.* \(.*\)'`
case "$x" in
/*) arg0="$x" ;;
*) arg0="`dirname ""$arg0""`/$x" ;;
esac
done

dir=`dirname "$arg0"`
#added
export LD_LIBRARY_PATH=${dir}/lib32

vco=${uname}${utype}
case $vco in
Linux*)
# On Linux, default to 32 bit unless MTI_VCO_MODE is set
# except for Visualizer where we invoke 64-bit version by default
if [ "$mode" = "" ] ; then
if ( [ "$cmd" = "visualizer" -o "$cmd" = "vis" ]) \
&& ( [ -x "$dir/linux_x86_64/visualizer" ] ) ; then
mode="64";
elif ( [ -x "$dir/linux/vsim" -o -x "$dir/linuxpe/vsim" ] ) \
&& ( [ "$umach" != "aarch64" ] ); then
mode="32";
fi
fi

# If IA-64 or X86-64 architecture and machine-specific vsim is not
# installed but linux vsim is available, use linux platform.
# Otherwise use machine-specific platform.
#
if [ "$mode" != "32" ] \
&& ( [ "$umach" = "ia64" ] \
|| [ "$umach" = "x86_64" ] \
|| [ "$umach" = "aarch64" ] ) \
&& ( [ "$mode" = "64" ] \
|| [ -x "$dir/linux_$umach/vsim" ] \
|| [ ! -x "$dir/linux/vsim" ] ) ; then
vco="linux_$umach"
else
vco="linux"
if [ ! -x "$dir/$vco/vsim" -a -x "$dir/linuxpe/vsim" ]; then
vco="linuxpe"
fi
fi
;;
CYGWIN_NT* | MSYS_NT*)
if [ -x "$dir/win32/vsim" ]; then
vco="win32"
elif [ -x "$dir/win32pe/vsim" ]; then
vco="win32pe"
fi
if [ "$mode" = "" ] ||
[ "$mode" = "64" ] ; then
sysostype="`systeminfo 2>&1 | grep -i 'System Type' | cut -f1 -d- | sed s@x@X@ | cut -f2 -dX`"
if [ "$sysostype" == "64" ] ; then
vco="win64"
fi
fi
;;
*)
vco="unknown"
;;
esac

doatenv=0

case $cmd in
qhdir)
cmd=vdir
;;
qhmap)
cmd=vmap
;;
qvlcom)
cmd=vlog
;;
qhlib)
cmd=vlib
;;
qhsim)
cmd=vsim
;;
qhdel)
cmd=vdel
;;
qhmake)
cmd=vmake
;;
qvhcom)
cmd=vcom
;;
qhgencomp)
cmd=vgencomp
;;
vco)
echo $vco
exit
;;
hdloffice)
doatenv=1
;;
hdlstudio)
doatenv=1
;;
esac

# verify that we can find the command to execute.
if [ -x "$dir/$vco/$cmd" ] ; then
arg0="$dir/$vco/$cmd"
else
# if bin nolonger has symbolic links in it then
# we need to look up and over
f2="$dir/$vco/$cmd"
if [ -x "$f2" ] ; then
arg0="$f2"
elif [ -x "$dir/${vco}pe/$cmd" ] ; then
arg0="$dir/${vco}pe/$cmd"
elif [ -x "$dir/${vco}le/$cmd" ] ; then
arg0="$dir/${vco}le/$cmd"
else
# Last ditch effort. Use original arg0 and try it!
d2=`dirname "$0"`
f2="$d2/$vco/$cmd"
if [ -x $f2 ] ; then
arg0=$f2
else
echo "Error: cannot find \"$dir/$vco/$cmd\""
exit 1
fi
fi
fi

if [ $doatenv ]; then
if [ -x "$dir/$vco/athdlenv" ] ; then
#. $dir/$vco/athdlenv
if [ -z "$LD_LIBRARY_PATH" ]; then
export LD_LIBRARY_PATH="$dir/$vco"
else
export LD_LIBRARY_PATH="$dir/$vco:$LD_LIBRARY_PATH"
fi
#echo LD_LIBRARY_PATH=$LD_LIBRARY_PATH
fi
fi
if [ -z "$*" ] ; then
exec "$arg0"
else
exec "$arg0" "$@"

2,697 Views

I think it is best that you try to re-install the latest Quartus version and the corresponding Modelsim version. Check that the hardware and software requirement are met before installing. 

https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/manual/quartus_install.pdf

2,590 Views

Hi, 

 

We do not receive any response from you to the previous question/reply/answer that I have provided. Please post a response in the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you with your follow-up questions.

 

Best Regards,

Shyan Yew


hectorca
Employee
2,156 Views

Hi @MTett1,

I was able to workaround this issue exporting the following environmental variable:

export MTI_VCO_MODE=32

 

The problem seems to be that Modelsim detects that Ubuntu is a x64 OS, but the installer Modelsim Intel Starter Edition only can run in 32 bits mode.

Exporting that variable to your environment will make Modelsim to be executed in 32 bits regarding the OS architecture.

Regards

 

 

Reply