LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-14-2017, 12:58 AM   #1
maja_ldm
LQ Newbie
 
Registered: Sep 2008
Posts: 21

Rep: Reputation: 0
Setting up datapath for a not-standard application (Quartus 13.0.1 on Debian 8.7.1)


I need to setup Quartus 13.0.1 on a Debian 8.7.1 system and I followed the guide at this wiki.

After installing I need to setup a proper path and the wiki suggests to add the following code to ~/.bashrc:

Quote:
export ALTERAPATH="/opt/quartus/altera/13.0sp1/"
export ALTERAOCLSDKROOT="${ALTERAPATH}/hld"
export QUARTUS_ROOTDIR=${ALTERAPATH}/quartus
export QUARTUS_ROOTDIR_OVERRIDE="$QUARTUS_ROOTDIR"
export PATH=$PATH:${ALTERAPATH}/quartus/bin
export PATH=$PATH:${ALTERAPATH}/nios2eds/bin
export PATH=$PATH:${QSYS_ROOTDIR}
and then just call quartos from a terminal. The problem is that for some reason this doesn't work, and even if I launch the application by specifying the whole path from my terminal the program needs to call other modules from the installation directory and the system can't get there.

I noticed by using the env command that my path results like so:
Quote:
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/opt/quartus/altera/13.0sp1//quartus/bin:/opt/quartus/altera/13.0sp1//nios2eds/bin:
but I can't seem to get rid of the double forward slashes (I'm not sure they're normal). Also, the installed files doesn't have a hld folder (so I can't be sure of what's supposed to be inside.

(Note that I followed a guide to version 14.0 to installe 13.0.1).

How should I format my files to have a properly setup path to a modular program with a not-standard file structure?
 
Old 03-14-2017, 05:12 AM   #2
aragorn2101
Member
 
Registered: Dec 2012
Location: Mauritius
Distribution: Slackware
Posts: 552

Rep: Reputation: 271Reputation: 271Reputation: 271
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
 
Old 03-15-2017, 10:49 PM   #3
maja_ldm
LQ Newbie
 
Registered: Sep 2008
Posts: 21

Original Poster
Rep: Reputation: 0
I tried the edited version of the code and checking the path with env it seems to be correct, but I still can't open the program when typing
Quote:
quartus
the output is
Quote:
bash: quartus: command not found
I can open it with
Quote:
sudo /opt/quartus/altera/13.0sp1b/quartus/bin/quartus
(I'm also not entirely sure why it requires privileges and it is kind of troublesome because it creates files and folders that belong to root).

Last edited by maja_ldm; 03-15-2017 at 10:51 PM.
 
Old 03-15-2017, 11:01 PM   #4
maja_ldm
LQ Newbie
 
Registered: Sep 2008
Posts: 21

Original Poster
Rep: Reputation: 0
wrong thread..

Last edited by maja_ldm; 03-15-2017 at 11:09 PM.
 
  


Reply

Tags
debian, path


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error glibc 2.4 not found quartus _sh required sagar666 Linux - Server 5 12-28-2014 04:04 PM
Printing of application out in standard and non standard paper size gkedar614 Linux - Newbie 2 08-23-2013 04:40 AM
[SOLVED] Installing Quartus II Web Edition v9.1 kaixi Slackware 1 11-10-2012 09:40 AM
LXer: Setting a New Standard LXer Syndicated Linux News 0 07-21-2007 08:01 PM
Altera Quartus on Mandriva? DiBosco Linux - Software 0 01-06-2007 05:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration