LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-20-2020, 01:18 AM   #1
shinamouri
LQ Newbie
 
Registered: Jul 2020
Posts: 1

Rep: Reputation: Disabled
Rust w/aligner utility but have to add to $PATH for cargo then aligner each time


Currently assigning the Path each time I need to run cargo (cargo will show already installed, but provides the directory path info I need), as follows:
export PATH="/home/shinamouri/.cargo/bin:$PATH"

and similarly for aligner

export PATH="/root/.cargo/bin:$PATH"

After which I can run the utility, but upon completion, the terminal window prompt states a process is still running. The outputted file is already available, so I close the terminal window, but have to repeat the whole process if I open a terminal again. It seems like the directories added to $PATH are being reset.
Is there a simple way to set it up so I don't have to repeat the process every time?

Notes:
1:Rust install guide I used: https://www.techrepublic.com/article...rust-on-linux/

2:aligner takes two subtitle files as paramaters, outputting the 2nd, shifted to the timing of the first. (useful for language study)



TLDR: I need help making directories stick in $PATH
 
Old 07-21-2020, 07:23 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
I know nothing about the programs you want to run, but you should put the PATH in a script that is executed when you log on or start a shell. Which script that is depends on your shell and also your distro. If the shell is Bash, put the PATH assignment in .bash_profile or .bashrc.
 
  


Reply


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
[SOLVED] Rustc-1.19.0 - It is safe to remove ~/.cargo directory after compiling anak_bawang Linux From Scratch 2 10-12-2017 02:26 AM
LXer: The Dragon Spacecraft is carrying precious cargo in the form of a supercomputer LXer Syndicated Linux News 0 08-13-2017 11:48 PM
LXer: Cargo Commander Action-Platformer Released For Linux LXer Syndicated Linux News 0 12-17-2013 02:10 AM
Wireless works but have to "make load" each time? Is there a way to start automatic? jdruin Linux - Laptop and Netbook 4 12-28-2008 01:15 PM
LXer: Cargo Repeatable System Tests for Web Apps LXer Syndicated Linux News 0 10-07-2006 01:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:59 AM.

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
Open Source Consulting | Domain Registration