Sponsored Content
Full Discussion: How to compile this?
Top Forums Shell Programming and Scripting How to compile this? Post 303043255 by zognadal on Wednesday 22nd of January 2020 12:03:12 PM
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.
 

10 More Discussions You Might Find Interesting

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

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

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

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

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

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

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

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

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

10. 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
SYSTEMD-CRYPTSETUP-GENERATOR(8) 			   systemd-cryptsetup-generator 			   SYSTEMD-CRYPTSETUP-GENERATOR(8)

NAME
systemd-cryptsetup-generator - Unit generator for /etc/crypttab SYNOPSIS
/lib/systemd/system-generators/systemd-cryptsetup-generator DESCRIPTION
systemd-cryptsetup-generator is a generator that translates /etc/crypttab into native systemd units early at boot and when configuration of the system manager is reloaded. This will create systemd-cryptsetup@.service(8) units as necessary. systemd-cryptsetup-generator implements systemd.generator(7). KERNEL COMMAND LINE
systemd-cryptsetup-generator understands the following kernel command line parameters: luks=, rd.luks= Takes a boolean argument. Defaults to "yes". If "no", disables the generator entirely. rd.luks= is honored only by initial RAM disk (initrd) while luks= is honored by both the main system and the initrd. luks.crypttab=, rd.luks.crypttab= Takes a boolean argument. Defaults to "yes". If "no", causes the generator to ignore any devices configured in /etc/crypttab (luks.uuid= will still work however). rd.luks.crypttab= is honored only by initial RAM disk (initrd) while luks.crypttab= is honored by both the main system and the initrd. luks.uuid=, rd.luks.uuid= Takes a LUKS superblock UUID as argument. This will activate the specified device as part of the boot process as if it was listed in /etc/crypttab. This option may be specified more than once in order to set up multiple devices. rd.luks.uuid= is honored only by initial RAM disk (initrd) while luks.uuid= is honored by both the main system and the initrd. If /etc/crypttab contains entries with the same UUID, then the name, keyfile and options specified there will be used. Otherwise, the device will have the name "luks-UUID". If /etc/crypttab exists, only those UUIDs specified on the kernel command line will be activated in the initrd or the real root. luks.name=, rd.luks.name= Takes a LUKS super block UUID followed by an "=" and a name. This implies rd.luks.uuid= or luks.uuid= and will additionally make the LUKS device given by the UUID appear under the provided name. rd.luks.name= is honored only by initial RAM disk (initrd) while luks.name= is honored by both the main system and the initrd. luks.options=, rd.luks.options= Takes a LUKS super block UUID followed by an "=" and a string of options separated by commas as argument. This will override the options for the given UUID. If only a list of options, without an UUID, is specified, they apply to any UUIDs not specified elsewhere, and without an entry in /etc/crypttab. rd.luks.options= is honored only by initial RAM disk (initrd) while luks.options= is honored by both the main system and the initrd. luks.key=, rd.luks.key= Takes a password file name as argument or a LUKS super block UUID followed by a "=" and a password file name. For those entries specified with rd.luks.uuid= or luks.uuid=, the password file will be set to the one specified by rd.luks.key= or luks.key= of the corresponding UUID, or the password file that was specified without a UUID. rd.luks.key= is honored only by initial RAM disk (initrd) while luks.key= is honored by both the main system and the initrd. SEE ALSO
systemd(1), crypttab(5), systemd-cryptsetup@.service(8), cryptsetup(8), systemd-fstab-generator(8) systemd 237 SYSTEMD-CRYPTSETUP-GENERATOR(8)
All times are GMT -4. The time now is 01:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy