can i change the name of executable during compilation
up vote
1
down vote
favorite
I'm compiling LLVM/Clang but want to give a different name to the executable. Is there a special option I need to be using, like --binary-name
? The trick is that I want to rename every tool that comes with LLVM/Clang.
For example:
clang -> my-clang
llvm-conig -> my-llvm-config
etc.
Is it even possible in Unix/Linux?
llvm clang
|
show 5 more comments
up vote
1
down vote
favorite
I'm compiling LLVM/Clang but want to give a different name to the executable. Is there a special option I need to be using, like --binary-name
? The trick is that I want to rename every tool that comes with LLVM/Clang.
For example:
clang -> my-clang
llvm-conig -> my-llvm-config
etc.
Is it even possible in Unix/Linux?
llvm clang
1
How many binaries are you talking about? If there are only a handful, I do not see why you could not usemv
to rename them. You could also make a symbolic link the the binary with the name you prefer.
– Peschke
Sep 22 '15 at 19:49
@ElixirofLove The idea is to have multiple versions of the tool installed. I need to compile different versions of clang/llvm and it would be nice if I could run clang-3.5, llvm-config-3.4 etc.
– flashburn
Sep 22 '15 at 20:55
Clang doesn't support this while building: clang-developers.42468.n3.nabble.com/…, so I suppose you'll have to do this manually.
– muru
Sep 22 '15 at 22:42
Let me generalize the question. Is it possible to install multiple versions of the same tool on a *nix system? And if not then what are the best practices to do that? In addition should a *nix developers implement some sort of a management system in the future to solve this type of problem? If this comment is off topic, I'd appreciate if some moderator could create a separate discussion thread for it.
– flashburn
Sep 22 '15 at 22:46
@flashburn it is possible. They do, they're called packages (with package managers). We don't have discussion threads on Stack Exchange, you can use chatrooms instead.
– muru
Sep 22 '15 at 22:54
|
show 5 more comments
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I'm compiling LLVM/Clang but want to give a different name to the executable. Is there a special option I need to be using, like --binary-name
? The trick is that I want to rename every tool that comes with LLVM/Clang.
For example:
clang -> my-clang
llvm-conig -> my-llvm-config
etc.
Is it even possible in Unix/Linux?
llvm clang
I'm compiling LLVM/Clang but want to give a different name to the executable. Is there a special option I need to be using, like --binary-name
? The trick is that I want to rename every tool that comes with LLVM/Clang.
For example:
clang -> my-clang
llvm-conig -> my-llvm-config
etc.
Is it even possible in Unix/Linux?
llvm clang
llvm clang
edited Nov 21 at 21:20
Rui F Ribeiro
38.2k1475125
38.2k1475125
asked Sep 22 '15 at 18:11
flashburn
207211
207211
1
How many binaries are you talking about? If there are only a handful, I do not see why you could not usemv
to rename them. You could also make a symbolic link the the binary with the name you prefer.
– Peschke
Sep 22 '15 at 19:49
@ElixirofLove The idea is to have multiple versions of the tool installed. I need to compile different versions of clang/llvm and it would be nice if I could run clang-3.5, llvm-config-3.4 etc.
– flashburn
Sep 22 '15 at 20:55
Clang doesn't support this while building: clang-developers.42468.n3.nabble.com/…, so I suppose you'll have to do this manually.
– muru
Sep 22 '15 at 22:42
Let me generalize the question. Is it possible to install multiple versions of the same tool on a *nix system? And if not then what are the best practices to do that? In addition should a *nix developers implement some sort of a management system in the future to solve this type of problem? If this comment is off topic, I'd appreciate if some moderator could create a separate discussion thread for it.
– flashburn
Sep 22 '15 at 22:46
@flashburn it is possible. They do, they're called packages (with package managers). We don't have discussion threads on Stack Exchange, you can use chatrooms instead.
– muru
Sep 22 '15 at 22:54
|
show 5 more comments
1
How many binaries are you talking about? If there are only a handful, I do not see why you could not usemv
to rename them. You could also make a symbolic link the the binary with the name you prefer.
– Peschke
Sep 22 '15 at 19:49
@ElixirofLove The idea is to have multiple versions of the tool installed. I need to compile different versions of clang/llvm and it would be nice if I could run clang-3.5, llvm-config-3.4 etc.
– flashburn
Sep 22 '15 at 20:55
Clang doesn't support this while building: clang-developers.42468.n3.nabble.com/…, so I suppose you'll have to do this manually.
– muru
Sep 22 '15 at 22:42
Let me generalize the question. Is it possible to install multiple versions of the same tool on a *nix system? And if not then what are the best practices to do that? In addition should a *nix developers implement some sort of a management system in the future to solve this type of problem? If this comment is off topic, I'd appreciate if some moderator could create a separate discussion thread for it.
– flashburn
Sep 22 '15 at 22:46
@flashburn it is possible. They do, they're called packages (with package managers). We don't have discussion threads on Stack Exchange, you can use chatrooms instead.
– muru
Sep 22 '15 at 22:54
1
1
How many binaries are you talking about? If there are only a handful, I do not see why you could not use
mv
to rename them. You could also make a symbolic link the the binary with the name you prefer.– Peschke
Sep 22 '15 at 19:49
How many binaries are you talking about? If there are only a handful, I do not see why you could not use
mv
to rename them. You could also make a symbolic link the the binary with the name you prefer.– Peschke
Sep 22 '15 at 19:49
@ElixirofLove The idea is to have multiple versions of the tool installed. I need to compile different versions of clang/llvm and it would be nice if I could run clang-3.5, llvm-config-3.4 etc.
– flashburn
Sep 22 '15 at 20:55
@ElixirofLove The idea is to have multiple versions of the tool installed. I need to compile different versions of clang/llvm and it would be nice if I could run clang-3.5, llvm-config-3.4 etc.
– flashburn
Sep 22 '15 at 20:55
Clang doesn't support this while building: clang-developers.42468.n3.nabble.com/…, so I suppose you'll have to do this manually.
– muru
Sep 22 '15 at 22:42
Clang doesn't support this while building: clang-developers.42468.n3.nabble.com/…, so I suppose you'll have to do this manually.
– muru
Sep 22 '15 at 22:42
Let me generalize the question. Is it possible to install multiple versions of the same tool on a *nix system? And if not then what are the best practices to do that? In addition should a *nix developers implement some sort of a management system in the future to solve this type of problem? If this comment is off topic, I'd appreciate if some moderator could create a separate discussion thread for it.
– flashburn
Sep 22 '15 at 22:46
Let me generalize the question. Is it possible to install multiple versions of the same tool on a *nix system? And if not then what are the best practices to do that? In addition should a *nix developers implement some sort of a management system in the future to solve this type of problem? If this comment is off topic, I'd appreciate if some moderator could create a separate discussion thread for it.
– flashburn
Sep 22 '15 at 22:46
@flashburn it is possible. They do, they're called packages (with package managers). We don't have discussion threads on Stack Exchange, you can use chatrooms instead.
– muru
Sep 22 '15 at 22:54
@flashburn it is possible. They do, they're called packages (with package managers). We don't have discussion threads on Stack Exchange, you can use chatrooms instead.
– muru
Sep 22 '15 at 22:54
|
show 5 more comments
1 Answer
1
active
oldest
votes
up vote
0
down vote
I am unsure if you can change the name of all binary files during compilation... but my suggestion would be to compile the program in the directory it came in, move than entire directory to /usr/src
, then create a symbolic link to the main binary in /usr/bin
.
ln -s /usr/src/clang-3.5/bin/clang /usr/bin/clang-3.5
This way you can have multiple versions of different programs and not worry about the older libraries, and other files, being overwritten when installing them.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
I am unsure if you can change the name of all binary files during compilation... but my suggestion would be to compile the program in the directory it came in, move than entire directory to /usr/src
, then create a symbolic link to the main binary in /usr/bin
.
ln -s /usr/src/clang-3.5/bin/clang /usr/bin/clang-3.5
This way you can have multiple versions of different programs and not worry about the older libraries, and other files, being overwritten when installing them.
add a comment |
up vote
0
down vote
I am unsure if you can change the name of all binary files during compilation... but my suggestion would be to compile the program in the directory it came in, move than entire directory to /usr/src
, then create a symbolic link to the main binary in /usr/bin
.
ln -s /usr/src/clang-3.5/bin/clang /usr/bin/clang-3.5
This way you can have multiple versions of different programs and not worry about the older libraries, and other files, being overwritten when installing them.
add a comment |
up vote
0
down vote
up vote
0
down vote
I am unsure if you can change the name of all binary files during compilation... but my suggestion would be to compile the program in the directory it came in, move than entire directory to /usr/src
, then create a symbolic link to the main binary in /usr/bin
.
ln -s /usr/src/clang-3.5/bin/clang /usr/bin/clang-3.5
This way you can have multiple versions of different programs and not worry about the older libraries, and other files, being overwritten when installing them.
I am unsure if you can change the name of all binary files during compilation... but my suggestion would be to compile the program in the directory it came in, move than entire directory to /usr/src
, then create a symbolic link to the main binary in /usr/bin
.
ln -s /usr/src/clang-3.5/bin/clang /usr/bin/clang-3.5
This way you can have multiple versions of different programs and not worry about the older libraries, and other files, being overwritten when installing them.
answered Sep 22 '15 at 22:19
Peschke
1,995920
1,995920
add a comment |
add a comment |
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%2f231399%2fcan-i-change-the-name-of-executable-during-compilation%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
1
How many binaries are you talking about? If there are only a handful, I do not see why you could not use
mv
to rename them. You could also make a symbolic link the the binary with the name you prefer.– Peschke
Sep 22 '15 at 19:49
@ElixirofLove The idea is to have multiple versions of the tool installed. I need to compile different versions of clang/llvm and it would be nice if I could run clang-3.5, llvm-config-3.4 etc.
– flashburn
Sep 22 '15 at 20:55
Clang doesn't support this while building: clang-developers.42468.n3.nabble.com/…, so I suppose you'll have to do this manually.
– muru
Sep 22 '15 at 22:42
Let me generalize the question. Is it possible to install multiple versions of the same tool on a *nix system? And if not then what are the best practices to do that? In addition should a *nix developers implement some sort of a management system in the future to solve this type of problem? If this comment is off topic, I'd appreciate if some moderator could create a separate discussion thread for it.
– flashburn
Sep 22 '15 at 22:46
@flashburn it is possible. They do, they're called packages (with package managers). We don't have discussion threads on Stack Exchange, you can use chatrooms instead.
– muru
Sep 22 '15 at 22:54