Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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 building testdisk as static and when i run

make static

i am getting the following error

/usr/bin/ld: cannot find -luuid

collect2: ld returned 1 exit status

what's the problem?

in the makefile i have the following line

LIBS = -lz -lntfs -luuid -lcrypto -lext2fs -lcom_err

and i am getting error on all the floowing flags

-luuid -lcrypto -lext2fs -lcom_err

share|improve this question
Do you have libuuid.a library installed? – Maciej Piechotka Sep 7 '10 at 7:34
If you don't the debian/ubuntu package that contains it is called uuid-dev – msw Sep 7 '10 at 7:45
I have libuuid.so in /usr/lib but not libuuid.a. How to install it. – MA1 Sep 7 '10 at 7:49
I am using Fedora 13. – MA1 Sep 7 '10 at 7:51

The RPM packages for libuuid-devel for Fedora 13 appear to contain only the shared library. Therefore you'd have to build it from source if you need a static library.

I expect that this is the same problem with a static -lcrypto and the others.

However, if it is TestDisk specifically that you are trying to compile, you probably shouldn't bother as the partition repair utility is part of most LiveCD distributions, including Fedora.

share|improve this answer

Your Answer


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.