A program doesn't work when invoked through a symbolic link
up vote
3
down vote
favorite
I have an executable paraview
in the directory ~/software/Para/bin/
and
I want to create a soft link in my home directory. I have tried like this but could not succeed.
sudo ln -s ~/software/Para/bin/paraview para123;
A soft link was created with this command but its not running my application. The same was happened for
sudo ln -s ./software/Para/bin/paraview para123
and also tried this
ln -s "/home/niyaa/software/ParaView-4.3.1-Linux-64bit/bin/paraview" para123
The error is
Error converting runtime path entry "./../lib/paraview-4.3" to real path: No such file or directory
symlink executable
|
show 1 more comment
up vote
3
down vote
favorite
I have an executable paraview
in the directory ~/software/Para/bin/
and
I want to create a soft link in my home directory. I have tried like this but could not succeed.
sudo ln -s ~/software/Para/bin/paraview para123;
A soft link was created with this command but its not running my application. The same was happened for
sudo ln -s ./software/Para/bin/paraview para123
and also tried this
ln -s "/home/niyaa/software/ParaView-4.3.1-Linux-64bit/bin/paraview" para123
The error is
Error converting runtime path entry "./../lib/paraview-4.3" to real path: No such file or directory
symlink executable
All approaches should work and if you replace paraview with a simple executable mock such as a scriptfile containingecho hello world
you should see they do work. The problem must be somewhere else. What errors does it give? What is$?
after you run the./para123
link from$HOME
?
– PSkocik
Oct 2 '15 at 10:46
Error converting runtime path entry "./../lib/paraview-4.3" to real path: No such file or directory
– user3383404
Oct 2 '15 at 11:10
thanks i make bash script in my home folder its start working.. now i am curious about the soft link that how to done it that way.
– user3383404
Oct 2 '15 at 11:13
There's your problem right there. Paraview is trying to load a library and it's resolving the library's path relative to the executable. The problem is, it looks liek./para123
is the executable now, ant there's no./../lib/paraview-4-3
relative to it. If you don't want to modify the paraview package, what you might want to do is forget about symlinks for now and instead use a simple script that runs the originalparaview
executable.
– PSkocik
Oct 2 '15 at 11:14
LOL. I see you solved it that way a couple of seconds before I suggested it. Nice.
– PSkocik
Oct 2 '15 at 11:15
|
show 1 more comment
up vote
3
down vote
favorite
up vote
3
down vote
favorite
I have an executable paraview
in the directory ~/software/Para/bin/
and
I want to create a soft link in my home directory. I have tried like this but could not succeed.
sudo ln -s ~/software/Para/bin/paraview para123;
A soft link was created with this command but its not running my application. The same was happened for
sudo ln -s ./software/Para/bin/paraview para123
and also tried this
ln -s "/home/niyaa/software/ParaView-4.3.1-Linux-64bit/bin/paraview" para123
The error is
Error converting runtime path entry "./../lib/paraview-4.3" to real path: No such file or directory
symlink executable
I have an executable paraview
in the directory ~/software/Para/bin/
and
I want to create a soft link in my home directory. I have tried like this but could not succeed.
sudo ln -s ~/software/Para/bin/paraview para123;
A soft link was created with this command but its not running my application. The same was happened for
sudo ln -s ./software/Para/bin/paraview para123
and also tried this
ln -s "/home/niyaa/software/ParaView-4.3.1-Linux-64bit/bin/paraview" para123
The error is
Error converting runtime path entry "./../lib/paraview-4.3" to real path: No such file or directory
symlink executable
symlink executable
edited Oct 2 '15 at 22:15
Gilles
524k12610481578
524k12610481578
asked Oct 2 '15 at 10:35
user3383404
183
183
All approaches should work and if you replace paraview with a simple executable mock such as a scriptfile containingecho hello world
you should see they do work. The problem must be somewhere else. What errors does it give? What is$?
after you run the./para123
link from$HOME
?
– PSkocik
Oct 2 '15 at 10:46
Error converting runtime path entry "./../lib/paraview-4.3" to real path: No such file or directory
– user3383404
Oct 2 '15 at 11:10
thanks i make bash script in my home folder its start working.. now i am curious about the soft link that how to done it that way.
– user3383404
Oct 2 '15 at 11:13
There's your problem right there. Paraview is trying to load a library and it's resolving the library's path relative to the executable. The problem is, it looks liek./para123
is the executable now, ant there's no./../lib/paraview-4-3
relative to it. If you don't want to modify the paraview package, what you might want to do is forget about symlinks for now and instead use a simple script that runs the originalparaview
executable.
– PSkocik
Oct 2 '15 at 11:14
LOL. I see you solved it that way a couple of seconds before I suggested it. Nice.
– PSkocik
Oct 2 '15 at 11:15
|
show 1 more comment
All approaches should work and if you replace paraview with a simple executable mock such as a scriptfile containingecho hello world
you should see they do work. The problem must be somewhere else. What errors does it give? What is$?
after you run the./para123
link from$HOME
?
– PSkocik
Oct 2 '15 at 10:46
Error converting runtime path entry "./../lib/paraview-4.3" to real path: No such file or directory
– user3383404
Oct 2 '15 at 11:10
thanks i make bash script in my home folder its start working.. now i am curious about the soft link that how to done it that way.
– user3383404
Oct 2 '15 at 11:13
There's your problem right there. Paraview is trying to load a library and it's resolving the library's path relative to the executable. The problem is, it looks liek./para123
is the executable now, ant there's no./../lib/paraview-4-3
relative to it. If you don't want to modify the paraview package, what you might want to do is forget about symlinks for now and instead use a simple script that runs the originalparaview
executable.
– PSkocik
Oct 2 '15 at 11:14
LOL. I see you solved it that way a couple of seconds before I suggested it. Nice.
– PSkocik
Oct 2 '15 at 11:15
All approaches should work and if you replace paraview with a simple executable mock such as a scriptfile containing
echo hello world
you should see they do work. The problem must be somewhere else. What errors does it give? What is $?
after you run the ./para123
link from $HOME
?– PSkocik
Oct 2 '15 at 10:46
All approaches should work and if you replace paraview with a simple executable mock such as a scriptfile containing
echo hello world
you should see they do work. The problem must be somewhere else. What errors does it give? What is $?
after you run the ./para123
link from $HOME
?– PSkocik
Oct 2 '15 at 10:46
Error converting runtime path entry "./../lib/paraview-4.3" to real path: No such file or directory
– user3383404
Oct 2 '15 at 11:10
Error converting runtime path entry "./../lib/paraview-4.3" to real path: No such file or directory
– user3383404
Oct 2 '15 at 11:10
thanks i make bash script in my home folder its start working.. now i am curious about the soft link that how to done it that way.
– user3383404
Oct 2 '15 at 11:13
thanks i make bash script in my home folder its start working.. now i am curious about the soft link that how to done it that way.
– user3383404
Oct 2 '15 at 11:13
There's your problem right there. Paraview is trying to load a library and it's resolving the library's path relative to the executable. The problem is, it looks liek
./para123
is the executable now, ant there's no ./../lib/paraview-4-3
relative to it. If you don't want to modify the paraview package, what you might want to do is forget about symlinks for now and instead use a simple script that runs the original paraview
executable.– PSkocik
Oct 2 '15 at 11:14
There's your problem right there. Paraview is trying to load a library and it's resolving the library's path relative to the executable. The problem is, it looks liek
./para123
is the executable now, ant there's no ./../lib/paraview-4-3
relative to it. If you don't want to modify the paraview package, what you might want to do is forget about symlinks for now and instead use a simple script that runs the original paraview
executable.– PSkocik
Oct 2 '15 at 11:14
LOL. I see you solved it that way a couple of seconds before I suggested it. Nice.
– PSkocik
Oct 2 '15 at 11:15
LOL. I see you solved it that way a couple of seconds before I suggested it. Nice.
– PSkocik
Oct 2 '15 at 11:15
|
show 1 more comment
1 Answer
1
active
oldest
votes
up vote
2
down vote
With the information in the comments to the question, one of the following may be an adequate solution.
Use an alias:
alias para123="$HOME/software/Para/bin/paraview"
Use a shell function:
para123 () { "$HOME/software/Para/bin/paraview" "$@"; }
Use a shell script (called
para123
):
#!/bin/sh
"$HOME/software/Para/bin/paraview" "$@"
Option 2 coded in a .bashrc file worked well for me. I used the formulationparawhat () { <path to paraview executable> "$@" &> /dev/null & }
to suppress stdout and sterr streams and send the job to the background.
– XavierStuvw
Dec 4 at 13:06
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
With the information in the comments to the question, one of the following may be an adequate solution.
Use an alias:
alias para123="$HOME/software/Para/bin/paraview"
Use a shell function:
para123 () { "$HOME/software/Para/bin/paraview" "$@"; }
Use a shell script (called
para123
):
#!/bin/sh
"$HOME/software/Para/bin/paraview" "$@"
Option 2 coded in a .bashrc file worked well for me. I used the formulationparawhat () { <path to paraview executable> "$@" &> /dev/null & }
to suppress stdout and sterr streams and send the job to the background.
– XavierStuvw
Dec 4 at 13:06
add a comment |
up vote
2
down vote
With the information in the comments to the question, one of the following may be an adequate solution.
Use an alias:
alias para123="$HOME/software/Para/bin/paraview"
Use a shell function:
para123 () { "$HOME/software/Para/bin/paraview" "$@"; }
Use a shell script (called
para123
):
#!/bin/sh
"$HOME/software/Para/bin/paraview" "$@"
Option 2 coded in a .bashrc file worked well for me. I used the formulationparawhat () { <path to paraview executable> "$@" &> /dev/null & }
to suppress stdout and sterr streams and send the job to the background.
– XavierStuvw
Dec 4 at 13:06
add a comment |
up vote
2
down vote
up vote
2
down vote
With the information in the comments to the question, one of the following may be an adequate solution.
Use an alias:
alias para123="$HOME/software/Para/bin/paraview"
Use a shell function:
para123 () { "$HOME/software/Para/bin/paraview" "$@"; }
Use a shell script (called
para123
):
#!/bin/sh
"$HOME/software/Para/bin/paraview" "$@"
With the information in the comments to the question, one of the following may be an adequate solution.
Use an alias:
alias para123="$HOME/software/Para/bin/paraview"
Use a shell function:
para123 () { "$HOME/software/Para/bin/paraview" "$@"; }
Use a shell script (called
para123
):
#!/bin/sh
"$HOME/software/Para/bin/paraview" "$@"
edited Dec 4 at 13:29
answered Feb 15 '17 at 18:37
Kusalananda
119k16223364
119k16223364
Option 2 coded in a .bashrc file worked well for me. I used the formulationparawhat () { <path to paraview executable> "$@" &> /dev/null & }
to suppress stdout and sterr streams and send the job to the background.
– XavierStuvw
Dec 4 at 13:06
add a comment |
Option 2 coded in a .bashrc file worked well for me. I used the formulationparawhat () { <path to paraview executable> "$@" &> /dev/null & }
to suppress stdout and sterr streams and send the job to the background.
– XavierStuvw
Dec 4 at 13:06
Option 2 coded in a .bashrc file worked well for me. I used the formulation
parawhat () { <path to paraview executable> "$@" &> /dev/null & }
to suppress stdout and sterr streams and send the job to the background.– XavierStuvw
Dec 4 at 13:06
Option 2 coded in a .bashrc file worked well for me. I used the formulation
parawhat () { <path to paraview executable> "$@" &> /dev/null & }
to suppress stdout and sterr streams and send the job to the background.– XavierStuvw
Dec 4 at 13:06
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f233466%2fa-program-doesnt-work-when-invoked-through-a-symbolic-link%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
All approaches should work and if you replace paraview with a simple executable mock such as a scriptfile containing
echo hello world
you should see they do work. The problem must be somewhere else. What errors does it give? What is$?
after you run the./para123
link from$HOME
?– PSkocik
Oct 2 '15 at 10:46
Error converting runtime path entry "./../lib/paraview-4.3" to real path: No such file or directory
– user3383404
Oct 2 '15 at 11:10
thanks i make bash script in my home folder its start working.. now i am curious about the soft link that how to done it that way.
– user3383404
Oct 2 '15 at 11:13
There's your problem right there. Paraview is trying to load a library and it's resolving the library's path relative to the executable. The problem is, it looks liek
./para123
is the executable now, ant there's no./../lib/paraview-4-3
relative to it. If you don't want to modify the paraview package, what you might want to do is forget about symlinks for now and instead use a simple script that runs the originalparaview
executable.– PSkocik
Oct 2 '15 at 11:14
LOL. I see you solved it that way a couple of seconds before I suggested it. Nice.
– PSkocik
Oct 2 '15 at 11:15