How to compile this?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How to compile this?
# 1  
Old 01-22-2020
How to compile this?

I want to compile cryptsetup keyslot_checker , but I get error
Code:
gcc -lm -lcryptsetup chk_luks_keyslots.c -o chk_luks_keyslots  chk_luks_keyslots.c:39:27: fatal error: libcryptsetup.h: No such file or directory  #include <libcryptsetup.h>

in FAQ they say
Code:
 There is a tool that automatizes this in the cryptsetup distribution from version 1.6.0 onwards.  It is located in misc/keyslot_checker/.  Instructions how to use and how to interpret results are in the README file.  Note that this tool requires a libcryptsetup from cryptsetup 1.6.0 or later (which means libcryptsetup.so.4.5.0 or later).  If the tool complains about missing functions in libcryptsetup, you likely have an earlier version from your distribution still installed.  You can either point the symbolic link(s) from libcryptsetup.so.4 to the new version manually, or you can uninstall the distribution version of cryptsetup and re-install that from cryptsetup >= 1.6.0 again to fix this.

but I use version newer than 1.6.0
Code:
 apt-cache policy cryptsetup cryptsetup:   Installed: 2:1.7.3-4   Candidate: 2:1.7.3-4   Version table:  *** 2:1.7.3-4 100         100 /var/lib/dpkg/status

How can I fix this ? I don't understand how to point the symbolic link(s) from libcryptsetup.so.4 to the new version manually. And I don't want to re-install crypsetup because I'm afraid of damaging my disk.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

How to compile .sh script using g++?

Hi guys, Can you please help with compiling 123.sh file using g++? The idea is to make 123.sh not readable (make it kind of binary). Is there any idea ho to achieve this? (18 Replies)
Discussion started by: nypreH
18 Replies

2. Linux

Cross compile

Hi, I'm cross compiling libelektra to arm from linux system its giving library errors can any one help me? (0 Replies)
Discussion started by: Gautham.P
0 Replies

3. UNIX for Dummies Questions & Answers

Compiling gcc to compile make to compile yaboot

I have just installed OpenBSD on a 333MHz PPC iMac G3. It has a 6GB HDD that has been partitioned as 1GB MacOS 8.5.1, 3GB MacOS X 10.3.9, 2GB OpenBSD 4.8. I now need to install a bootloader so that my computer can recognize the OpenBSD partition at startup. I have been trying to install... (0 Replies)
Discussion started by: t04st3r
0 Replies

4. UNIX for Dummies Questions & Answers

Trying to compile and looking for old libraries

I have been working to install gparted on Centos. Compiling gparted required a number of thing I didn't have, so I downloaded and comilied them as root. After a lot of frustration, I tried using a sript to do it in another directory and removed all of the previously compiled code which was in... (3 Replies)
Discussion started by: brownwrap
3 Replies

5. HP-UX

Compile .java

How would I go about compiling a .java file into a .class file? (1 Reply)
Discussion started by: Tecron
1 Replies

6. Solaris

Help to compile

Hi everybody, I have a small opensource project http://hpaftpd.sourceforge.net (single-threaded ftp-server for heavy network traffic). It tested with FreeBSD and Linux. Can anybody try it with another Unix system? I'm interesting about HP/UX and Solaris. Thanks. (1 Reply)
Discussion started by: wwwdev
1 Replies

7. Programming

help to compile

Hello everybody, I have a small opensource project http://hpaftpd.sourceforge.net (single-threaded ftp-server). It tested with FreeBSD and Linux. Can anybody try it with another UNIX system ? I'm interesting about HP/UX and Solaris. I would very much appreciate receiving any results about it. ... (2 Replies)
Discussion started by: wwwdev
2 Replies

8. Programming

Compile error

Dear All I have a program writen in C and test in Unix. Now, I am try to run this program in windows 2000. I am receiving an error ]_getopt is not define. I will appreciate if any one can help explain to me why this problem is hapening and to slove this problem. Thank you (9 Replies)
Discussion started by: coulio
9 Replies

9. Shell Programming and Scripting

¿compile .ksh?

hi.. i have a .ksh script what needs to be fixed. my question is the next: do i need to compile the .ksh script when i finish of fixing it? if that is correct, how do i compile a .ksh? please help me thanks jona (1 Reply)
Discussion started by: DebianJ
1 Replies

10. UNIX for Dummies Questions & Answers

Compile X-Chat

Hi! Ive Solaris 8 x86 and i want to compile X-Chat. Ive installed glib-1.2.10-sol8-intel-local from www.sunfreeware.com. But the configure script of XChat tells me the following: ----- checking for pkg-config... /usr/local/bin/pkg-config checking for GLIB - version >= 2.0.3... sh:... (3 Replies)
Discussion started by: donald1111
3 Replies
Login or Register to Ask a Question