add path to ./yade-2014-05-08.git-998a28d

Asked by Jiadun Liu

Dear all,

I installed Yade from source on Ubuntu 14.04.

The following could be executed.

jiadun@jiadun-Lenovo-IdeaPad-Z500:~/myYade/YadeCodes/install/bin$ ./yade-2014-05-08.git-998a28d
Welcome to Yade 2014-05-08.git-998a28d
TCP python prompt on localhost:9001, auth cookie `syecdu'
XMLRPC info provider on http://localhost:21001
[[ ^L clears screen, ^U kills line. F12 controller, F11 3d view (use h-key for showing help), F10 both, F9 generator, F8 plot. ]]

Yade [1]: t

How to add the path of "yade-2014-05-08.git-998a28d" such that jiadun@jiadun-Lenovo-IdeaPad-Z500:~$ yade-2014-05-08.git-998a28d could be executable rather than yade-2014-05-08.git-998a28d: command not found.

I attempted to solving it by adding the following to both ~/.profile and ~/.bashrc. However, it did not work.

export PATH=/home/jiadun/myYade/YadeCodes/install/bin:$PATH
alias yade-2014-05-08.git-998a28d="/home/jiadun/myYade/YadeCodes/install/bin"

Best regards,
Jiadun

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Jiadun Liu
Solved:
Last query:
Last reply:
Revision history for this message
Jiadun Liu (liujiadun) said :
#1

After change

alias yade-2014-05-08.git-998a28d="/home/jiadun/myYade/YadeCodes/install/bin"

to

alias yade-2014-05-08.git-998a28d="/home/jiadun/myYade/YadeCodes/install/bin/yade-2014-05-08.git-998a28d"

Problem solved.

Revision history for this message
Christian Jakob (jakob-ifgt) said :
#2

Hi,

> alias yade-2014-05-08.git-998a28d="/home/jiadun/myYade/YadeCodes/install/bin/yade-2014-05-08.git-998a28d"

Why so complicated? ... simply call it "yade":

alias yade = "/home/jiadun/myYade/YadeCodes/install/bin/yade-2014-05-08.git-998a28d"

Regards,

Christian

Revision history for this message
Jiadun Liu (liujiadun) said :
#3

Hi Christian,

Thank you for your suggestion.

Regards,
Jiadun