Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am using linux mint13 64bit

now ,when I use

ldd memcached

the error is below:

ldd: ./memcached: No such file or directory

I don't know why.

share|improve this question

migrated from stackoverflow.com May 1 '13 at 13:22

This question came from our site for professional and enthusiast programmers.

2  
Try ldd `which memcached` –  mathk May 1 '13 at 12:45
1  
Try ldd $(which memcached) instead. And learn much more about PATH. The ldd command does work, but expects the file path of some executable... You could try ldd /usr/bin/memcached if your memcached is inside /usr/bin/ –  Basile Starynkevitch May 1 '13 at 12:47
    
@Basile STARYNKEVITCH thanks mathk, I am now install memecahced, and i want to know which packages thant i need to install before i install memcahced, so I use ldd memcached, but it cannot work out. And when I use ldd 'other programme' is tell me that no such file or directory –  user2339374 May 1 '13 at 12:49
    
If you install the memcached package (e.g. with aptitude install memcached) from your distribution, it will take care of dependencies as well. Managing packages dependencies is the job of the package manager of your distribution. If you want to build memcached by yourself, you should care about the dependencies (e.g. with aptitude build-dep memcached etc....). –  Basile Starynkevitch May 1 '13 at 12:52
    
You should use the Mint Package Manager.. Don't try to apt-get them yourself –  staticx May 1 '13 at 12:55
show 3 more comments

1 Answer

ldd search PATH if you don't use full(absolute path)

ldd could not find memcached because this command is not in search PATH first of all find command location by find command , then use ldd

share|improve this answer
2  
Wrong, ldd does not search $PATH (at least on Debian/Sid, with ldd (Debian EGLIBC 2.13-38) 2.13 given by ldd --version). For instance ldd sh fails, while /bin/sh exists and /bin is in my $PATH (and the ldd sh command is being run from my $HOME directory which does not have any sh file). –  Basile Starynkevitch May 1 '13 at 15:02
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.