What does this line mean :/opt/glibc-2.14/etc$ sudo sh -c “echo '/usr/local/lib' >> ld.so.conf” ...
How does the math work when buying airline miles?
Take 2! Is this homebrew Lady of Pain warlock patron balanced?
How come Sam didn't become Lord of Horn Hill?
How do I find out the mythology and history of my Fortress?
How to react to hostile behavior from a senior developer?
How to write the following sign?
What do you call the main part of a joke?
Crossing US/Canada Border for less than 24 hours
How can I reduce the gap between left and right of cdot with a macro?
Central Vacuuming: Is it worth it, and how does it compare to normal vacuuming?
What is the appropriate index architecture when forced to implement IsDeleted (soft deletes)?
How do living politicians protect their readily obtainable signatures from misuse?
The code below, is it ill-formed NDR or is it well formed?
Did Deadpool rescue all of the X-Force?
Amount of permutations on an NxNxN Rubik's Cube
Time to Settle Down!
ArcGIS Pro Python arcpy.CreatePersonalGDB_management
Why does it sometimes sound good to play a grace note as a lead in to a note in a melody?
Why weren't discrete x86 CPUs ever used in game hardware?
How to tell that you are a giant?
Illegal assignment from sObject to Id
Performance gap between vector<bool> and array
Trademark violation for app?
Using et al. for a last / senior author rather than for a first author
What does this line mean :/opt/glibc-2.14/etc$ sudo sh -c “echo '/usr/local/lib' >> ld.so.conf”
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)
2019 Community Moderator Election Results
Why I closed the “Why is Kali so hard” questionWhat does this output from xev mean?What does this regex mean?What does “FILENAME=$(echo $INFILE | grep -oE ”[^/]+$“) ” mean?Why does chroot get ENOENT on an existing file?What exactly is echo '[local]nlocalhostn' > /etc?What does “-” mean in this “-cp” command?What does this iptable rule mean?Passing variable value to another user's shellWhat does this IF statement meanHow to safely reconfigure gcc on my Linux system?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I had a problem while trying to install glibc 2.14, I got this error
/home/myname/glibc_install/glibc-2.14/build/elf/ldconfig: Can't open configuration file /opt/glibc-2.14/etc/ld.so.conf: No such file or directory
The fix suggested this
:/opt/glibc-2.14/etc$ sudo sh -c "echo '/opt/lib' >> ld.so.conf"
AFAIK sudo sh -c "echo '/opt/lib' >> ld.so.conf" means open the sh program(the shell) and give it this command "echo '/opt/lib' >> ld.so.conf" to execute, which creates a file named ld.so.conf in the current directory and save in it /opt/lib, is that right ? what does the entire line means, or what the shell is going to do step by step ?
linux shell
New contributor
Accountant م is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
I had a problem while trying to install glibc 2.14, I got this error
/home/myname/glibc_install/glibc-2.14/build/elf/ldconfig: Can't open configuration file /opt/glibc-2.14/etc/ld.so.conf: No such file or directory
The fix suggested this
:/opt/glibc-2.14/etc$ sudo sh -c "echo '/opt/lib' >> ld.so.conf"
AFAIK sudo sh -c "echo '/opt/lib' >> ld.so.conf" means open the sh program(the shell) and give it this command "echo '/opt/lib' >> ld.so.conf" to execute, which creates a file named ld.so.conf in the current directory and save in it /opt/lib, is that right ? what does the entire line means, or what the shell is going to do step by step ?
linux shell
New contributor
Accountant م is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
I had a problem while trying to install glibc 2.14, I got this error
/home/myname/glibc_install/glibc-2.14/build/elf/ldconfig: Can't open configuration file /opt/glibc-2.14/etc/ld.so.conf: No such file or directory
The fix suggested this
:/opt/glibc-2.14/etc$ sudo sh -c "echo '/opt/lib' >> ld.so.conf"
AFAIK sudo sh -c "echo '/opt/lib' >> ld.so.conf" means open the sh program(the shell) and give it this command "echo '/opt/lib' >> ld.so.conf" to execute, which creates a file named ld.so.conf in the current directory and save in it /opt/lib, is that right ? what does the entire line means, or what the shell is going to do step by step ?
linux shell
New contributor
Accountant م is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I had a problem while trying to install glibc 2.14, I got this error
/home/myname/glibc_install/glibc-2.14/build/elf/ldconfig: Can't open configuration file /opt/glibc-2.14/etc/ld.so.conf: No such file or directory
The fix suggested this
:/opt/glibc-2.14/etc$ sudo sh -c "echo '/opt/lib' >> ld.so.conf"
AFAIK sudo sh -c "echo '/opt/lib' >> ld.so.conf" means open the sh program(the shell) and give it this command "echo '/opt/lib' >> ld.so.conf" to execute, which creates a file named ld.so.conf in the current directory and save in it /opt/lib, is that right ? what does the entire line means, or what the shell is going to do step by step ?
linux shell
linux shell
New contributor
Accountant م is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Accountant م is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Accountant م is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 5 hours ago
Accountant مAccountant م
1084
1084
New contributor
Accountant م is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Accountant م is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Accountant م is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
Breaking down the command: sudo sh -c "echo '/opt/lib' >> ld.so.conf" into bite size chunks:
sudo sh -c means to run shell command via the Bourne shell with super-user privileges.
echo '/opt/lib' >> ld.so.conf is going to APPEND whatever is inside the quotes + a n (newline) char into ld.so.conf in the tail of the file.
New contributor
Jaime Carranza is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Thank you, and what does:/opt/glibc-2.14/etc$mean ?, because it is the part that I don't understand.
– Accountant م
5 hours ago
1
That is just the person's terminal prompt output. Which varies from machine to machine depending on what is set for your environment's $PS1 variable. It is there before he starts typing anything, so it's superfluous to your issue and should be ignored.
– Jaime Carranza
5 hours ago
............. LOL
– Accountant م
5 hours ago
add a comment |
Yes confusing) It looks like the first bit is the prompt (containing the working directory).
Therefore do
cd /opt/glibc-2.14/etc
sudo sh -c "echo '/opt/lib' >> ld.so.conf"
or
echo '/opt/lib' | sudo tee >/dev/null -a /opt/glibc-2.14/etc/ld.so.conf
Thanks, yes I will do that, if I didn't completely understand the line.
– Accountant م
5 hours ago
OMG, I'm sorry I didn't notice the first part "It looks like the first bit is the prompt (containing the working directory)." , this should be the answer I just didn't notice it, i'm sorry.
– Accountant م
5 hours ago
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Accountant م is a new contributor. Be nice, and check out our Code of Conduct.
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%2f513265%2fwhat-does-this-line-mean-opt-glibc-2-14-etc-sudo-sh-c-echo-usr-local-lib%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Breaking down the command: sudo sh -c "echo '/opt/lib' >> ld.so.conf" into bite size chunks:
sudo sh -c means to run shell command via the Bourne shell with super-user privileges.
echo '/opt/lib' >> ld.so.conf is going to APPEND whatever is inside the quotes + a n (newline) char into ld.so.conf in the tail of the file.
New contributor
Jaime Carranza is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Thank you, and what does:/opt/glibc-2.14/etc$mean ?, because it is the part that I don't understand.
– Accountant م
5 hours ago
1
That is just the person's terminal prompt output. Which varies from machine to machine depending on what is set for your environment's $PS1 variable. It is there before he starts typing anything, so it's superfluous to your issue and should be ignored.
– Jaime Carranza
5 hours ago
............. LOL
– Accountant م
5 hours ago
add a comment |
Breaking down the command: sudo sh -c "echo '/opt/lib' >> ld.so.conf" into bite size chunks:
sudo sh -c means to run shell command via the Bourne shell with super-user privileges.
echo '/opt/lib' >> ld.so.conf is going to APPEND whatever is inside the quotes + a n (newline) char into ld.so.conf in the tail of the file.
New contributor
Jaime Carranza is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Thank you, and what does:/opt/glibc-2.14/etc$mean ?, because it is the part that I don't understand.
– Accountant م
5 hours ago
1
That is just the person's terminal prompt output. Which varies from machine to machine depending on what is set for your environment's $PS1 variable. It is there before he starts typing anything, so it's superfluous to your issue and should be ignored.
– Jaime Carranza
5 hours ago
............. LOL
– Accountant م
5 hours ago
add a comment |
Breaking down the command: sudo sh -c "echo '/opt/lib' >> ld.so.conf" into bite size chunks:
sudo sh -c means to run shell command via the Bourne shell with super-user privileges.
echo '/opt/lib' >> ld.so.conf is going to APPEND whatever is inside the quotes + a n (newline) char into ld.so.conf in the tail of the file.
New contributor
Jaime Carranza is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Breaking down the command: sudo sh -c "echo '/opt/lib' >> ld.so.conf" into bite size chunks:
sudo sh -c means to run shell command via the Bourne shell with super-user privileges.
echo '/opt/lib' >> ld.so.conf is going to APPEND whatever is inside the quotes + a n (newline) char into ld.so.conf in the tail of the file.
New contributor
Jaime Carranza is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Jaime Carranza is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered 5 hours ago
Jaime CarranzaJaime Carranza
264
264
New contributor
Jaime Carranza is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Jaime Carranza is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Jaime Carranza is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Thank you, and what does:/opt/glibc-2.14/etc$mean ?, because it is the part that I don't understand.
– Accountant م
5 hours ago
1
That is just the person's terminal prompt output. Which varies from machine to machine depending on what is set for your environment's $PS1 variable. It is there before he starts typing anything, so it's superfluous to your issue and should be ignored.
– Jaime Carranza
5 hours ago
............. LOL
– Accountant م
5 hours ago
add a comment |
Thank you, and what does:/opt/glibc-2.14/etc$mean ?, because it is the part that I don't understand.
– Accountant م
5 hours ago
1
That is just the person's terminal prompt output. Which varies from machine to machine depending on what is set for your environment's $PS1 variable. It is there before he starts typing anything, so it's superfluous to your issue and should be ignored.
– Jaime Carranza
5 hours ago
............. LOL
– Accountant م
5 hours ago
Thank you, and what does
:/opt/glibc-2.14/etc$ mean ?, because it is the part that I don't understand.– Accountant م
5 hours ago
Thank you, and what does
:/opt/glibc-2.14/etc$ mean ?, because it is the part that I don't understand.– Accountant م
5 hours ago
1
1
That is just the person's terminal prompt output. Which varies from machine to machine depending on what is set for your environment's $PS1 variable. It is there before he starts typing anything, so it's superfluous to your issue and should be ignored.
– Jaime Carranza
5 hours ago
That is just the person's terminal prompt output. Which varies from machine to machine depending on what is set for your environment's $PS1 variable. It is there before he starts typing anything, so it's superfluous to your issue and should be ignored.
– Jaime Carranza
5 hours ago
............. LOL
– Accountant م
5 hours ago
............. LOL
– Accountant م
5 hours ago
add a comment |
Yes confusing) It looks like the first bit is the prompt (containing the working directory).
Therefore do
cd /opt/glibc-2.14/etc
sudo sh -c "echo '/opt/lib' >> ld.so.conf"
or
echo '/opt/lib' | sudo tee >/dev/null -a /opt/glibc-2.14/etc/ld.so.conf
Thanks, yes I will do that, if I didn't completely understand the line.
– Accountant م
5 hours ago
OMG, I'm sorry I didn't notice the first part "It looks like the first bit is the prompt (containing the working directory)." , this should be the answer I just didn't notice it, i'm sorry.
– Accountant م
5 hours ago
add a comment |
Yes confusing) It looks like the first bit is the prompt (containing the working directory).
Therefore do
cd /opt/glibc-2.14/etc
sudo sh -c "echo '/opt/lib' >> ld.so.conf"
or
echo '/opt/lib' | sudo tee >/dev/null -a /opt/glibc-2.14/etc/ld.so.conf
Thanks, yes I will do that, if I didn't completely understand the line.
– Accountant م
5 hours ago
OMG, I'm sorry I didn't notice the first part "It looks like the first bit is the prompt (containing the working directory)." , this should be the answer I just didn't notice it, i'm sorry.
– Accountant م
5 hours ago
add a comment |
Yes confusing) It looks like the first bit is the prompt (containing the working directory).
Therefore do
cd /opt/glibc-2.14/etc
sudo sh -c "echo '/opt/lib' >> ld.so.conf"
or
echo '/opt/lib' | sudo tee >/dev/null -a /opt/glibc-2.14/etc/ld.so.conf
Yes confusing) It looks like the first bit is the prompt (containing the working directory).
Therefore do
cd /opt/glibc-2.14/etc
sudo sh -c "echo '/opt/lib' >> ld.so.conf"
or
echo '/opt/lib' | sudo tee >/dev/null -a /opt/glibc-2.14/etc/ld.so.conf
answered 5 hours ago
ctrl-alt-delorctrl-alt-delor
12.5k52663
12.5k52663
Thanks, yes I will do that, if I didn't completely understand the line.
– Accountant م
5 hours ago
OMG, I'm sorry I didn't notice the first part "It looks like the first bit is the prompt (containing the working directory)." , this should be the answer I just didn't notice it, i'm sorry.
– Accountant م
5 hours ago
add a comment |
Thanks, yes I will do that, if I didn't completely understand the line.
– Accountant م
5 hours ago
OMG, I'm sorry I didn't notice the first part "It looks like the first bit is the prompt (containing the working directory)." , this should be the answer I just didn't notice it, i'm sorry.
– Accountant م
5 hours ago
Thanks, yes I will do that, if I didn't completely understand the line.
– Accountant م
5 hours ago
Thanks, yes I will do that, if I didn't completely understand the line.
– Accountant م
5 hours ago
OMG, I'm sorry I didn't notice the first part "It looks like the first bit is the prompt (containing the working directory)." , this should be the answer I just didn't notice it, i'm sorry.
– Accountant م
5 hours ago
OMG, I'm sorry I didn't notice the first part "It looks like the first bit is the prompt (containing the working directory)." , this should be the answer I just didn't notice it, i'm sorry.
– Accountant م
5 hours ago
add a comment |
Accountant م is a new contributor. Be nice, and check out our Code of Conduct.
Accountant م is a new contributor. Be nice, and check out our Code of Conduct.
Accountant م is a new contributor. Be nice, and check out our Code of Conduct.
Accountant م is a new contributor. Be nice, and check out our Code of Conduct.
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.
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%2f513265%2fwhat-does-this-line-mean-opt-glibc-2-14-etc-sudo-sh-c-echo-usr-local-lib%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