How to install UUID Library in Linux/Ubuntu?
UUID can be used to generate universally unique identifier. It can be accessed from the command line and from programs. To work with UUID in programs, you must install the UUID library.
To install uuid library in Ubuntu/Linux, you must install the following packages
- uuid
- uuid-dev (contains headers and static libraries)
$ sudo apt-get install uuid uuid-dev
Let’s check the contents of uuid-dev
$ dpkg -L uuid-dev /. /usr /usr/share /usr/share/doc /usr/share/doc/uuid-dev /usr/share/doc/uuid-dev/README.Debian /usr/share/doc/uuid-dev/copyright /usr/share/doc/uuid-dev/changelog.gz /usr/share/doc/uuid-dev/changelog.Debian.gz /usr/share/man /usr/share/man/man3 /usr/share/man/man3/uuid_compare.3.gz /usr/share/man/man3/uuid_copy.3.gz /usr/share/man/man3/uuid_generate.3.gz /usr/share/man/man3/uuid_generate_time.3.gz /usr/share/man/man3/uuid_is_null.3.gz /usr/share/man/man3/uuid_parse.3.gz /usr/share/man/man3/uuid_time.3.gz /usr/share/man/man3/uuid_unparse.3.gz /usr/share/man/man3/uuid.3.gz /usr/share/man/man3/uuid_clear.3.gz /usr/share/man/man3/uuid_generate_random.3.gz /usr/lib /usr/lib/libuuid.a /usr/lib/libuuid.la /usr/lib/pkgconfig /usr/lib/pkgconfig/uuid.pc /usr/include /usr/include/uuid /usr/include/uuid/uuid.h /usr/lib/libuuid.so
Note that for programming with uuid in C/C++, you must use the header “/usr/include/uuid/uuid.h” and dynamically link the libraries
Comments: