Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 May 1 '13 at 13:22

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

Try ldd `which memcached` – mathk May 1 '13 at 12:45
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 – Brian May 1 '13 at 12:55

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
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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .