Hi,
Firstly, the double forward slashes are appearing because the ALTERAPATH ends in '/'. So when you retrieve the variable's value the ending slash is already there, e.g.
Code:
export ALTERAPATH="/opt/quartus/altera/13.0sp1/"
export ALTERAOCLSDKROOT="${ALTERAPATH}/hld"
Also, for readability of the code, it is better to use a single line for the PATH setting. A better way of proceeding is shown below
Code:
ALTERAPATH="/opt/quartus/altera/13.0sp1"
ALTERAOCLSDKROOT="${ALTERAPATH}/hld"
QUARTUS_ROOTDIR=${ALTERAPATH}/quartus
QUARTUS_ROOTDIR_OVERRIDE="$QUARTUS_ROOTDIR"
PATH=$PATH:${ALTERAPATH}/quartus/bin:${ALTERAPATH}/nios2eds/bin:${QSYS_ROOTDIR}
export ALTERAPATH ALTERAOCLSDKROOT QUARTUS_ROOTDIR QUARTUS_ROOTDIR_OVERRIDE PATH
An immediate problem here is that
QSYS_ROOTDIR has not been initialized anywhere, so maybe that will be source of errors.
One last thing: this will only work for you since it is in your $HOME/.bashrc. If you want to make it work system-wide, you can add the above to a script in /etc/profile.d, e.g.
Code:
#!/bin/sh
# /etc/profile.d/quartus-paths.sh
ALTERAPATH="/opt/quartus/altera/13.0sp1"
ALTERAOCLSDKROOT="${ALTERAPATH}/hld"
QUARTUS_ROOTDIR=${ALTERAPATH}/quartus
QUARTUS_ROOTDIR_OVERRIDE="${QUARTUS_ROOTDIR}"
PATH=$PATH:${ALTERAPATH}/quartus/bin:${ALTERAPATH}/nios2eds/bin:${QSYS_ROOTDIR}
export ALTERAPATH ALTERAOCLSDKROOT QUARTUS_ROOTDIR QUARTUS_ROOTDIR_OVERRIDE PATH