Operating system requirements for building libpmem sources (uuid.h not found?)

34 views
Skip to first unread message

Judy Ward

unread,
Mar 15, 2016, 12:14:43 PM3/15/16
to pmem
Hi,

I'm trying to build the sources (nvml-0.4.tar)  on a RedHat EL7 machine and seeing this error:

cc -MD -c -o ../nondebug/libpmemblk/libpmemblk.o -std=gnu99 -Wall -Werror -Wmissing-prototypes -Wpointer-arith -Wunused-macros -Wmissing-field-initializers -Wsign-conversion -Wsign-compare -pthread -fno-common  -DSRCVERSION=\"\" -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -I../include -I../common/ -fPIC libpmemblk.c
cc -MD -c -o ../nondebug/libpmemblk/blk.o -std=gnu99 -Wall -Werror -Wmissing-prototypes -Wpointer-arith -Wunused-macros -Wmissing-field-initializers -Wsign-conversion -Wsign-compare -pthread -fno-common  -DSRCVERSION=\"\" -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -I../include -I../common/ -fPIC blk.c
blk.c:45:23: fatal error: uuid/uuid.h: No such file or directory
compilation terminated.
make[2]: *** [../nondebug/libpmemblk/blk.o] Error 1
make[2]: Leaving directory `/site/spt/usr13/jward4/LIBPMEM/nvml-0.4/src/libpmemblk'
make[1]: *** [libpmemblk] Error 2
make[1]: Leaving directory `/site/spt/usr13/jward4/LIBPMEM/nvml-0.4/src'
make: *** [all] Error 2
sptel19-62> find . -name uuid.h
sptel19-63>

Do I need to use an Ubuntu or a Debian machine? Or is there some prerequisite package I need?

sptel19-63> uname -a
Linux sptel19.nh.intel.com 4.0.4-301.fc22.x86_64 #1 SMP Thu May 21 13:10:33 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
sptel19-64>

thanks
Judy

Christian S. Perone

unread,
Mar 15, 2016, 12:17:55 PM3/15/16
to Judy Ward, pmem
You need to install the uuid library, in ubuntu the package name is uuid-dev.

--
You received this message because you are subscribed to the Google Groups "pmem" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pmem+uns...@googlegroups.com.
To post to this group, send email to pm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pmem/d2d615b7-13cb-4ac4-a90f-db562b4944fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
"Forgive, O Lord, my little jokes on Thee, and I'll forgive Thy great big joke on me."

Jeff Moyer

unread,
Mar 15, 2016, 12:21:04 PM3/15/16
to Judy Ward, pmem
Judy Ward <judy...@intel.com> writes:

> Hi,
>
> I'm trying to build the sources (nvml-0.4.tar) on a RedHat EL7 machine and
> seeing this error:

You can use RHEL. Do this:

# yum install libuuid-devel

Cheers,
Jeff

Krzysztof Czurylo

unread,
Mar 15, 2016, 12:24:52 PM3/15/16
to pmem, judy...@intel.com

Or grab the latest version of NVML source - it does not require libuuid anymore.
I'd suggest 0.4+b3 release.

--
krzycz

Judy Ward

unread,
Mar 15, 2016, 12:35:16 PM3/15/16
to pmem, judy...@intel.com


thanks -- I'm trying to install it without needing root permissions (which is why I'm building from scratch rather than using the rpm packages).

sptel19-68> yum install libuuid-devel
Yum command has been deprecated, redirecting to '/usr/bin/dnf install libuuid-devel'.
See 'man dnf' and 'man yum2dnf' for more information.
To transfer transaction metadata from yum to DNF, run:
'dnf install python-dnf-plugins-extras-migrate && dnf-2 migrate'
Error: This command has to be run under the root user.
sptel19-69>

Is there any way to do that?

Judy Ward

unread,
Mar 15, 2016, 12:40:39 PM3/15/16
to pmem, judy...@intel.com
 
Thanks, where are the latest sources? I just downloaded the source code  tar.gz from here:


Judy

Krzysztof Czurylo

unread,
Mar 15, 2016, 12:46:12 PM3/15/16
to pmem, judy...@intel.com
Reply all
Reply to author
Forward
0 new messages