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
NET-COMPILE(8)						      System Manager's Manual						    NET-COMPILE(8)

NAME
netscript-compile - netscript ipfilter-defs compile back end. SYNOPSIS
netcript-compile [ -fhq ] [ -b max-backup-level ] DESCRIPTION
This manual page documents briefly the netscript-compile command from the netscript router/firewall network configuration package. This command is the back end to the netscript compile command documented in netscript(8) manpage. See ipfilter-defs(5) for the details on the definitions files in /etc/netscript/ipfilter-defs. By default it checks to see if the relevant files in the /etc/netscript/ipfilter-defs directory have been updated by comparing their modi- fication times to that of /etc/netscript/ipfilter-defs.conf, and if updating is needed, it recompiles and re-creates the file. Up to max- backup-levels of history are kept of previously compiled /etc/netscript/ipfilter-defs.conf files, with a numeric extention in order of increasing age. OPTIONS
-b max-backup-level Sets the maximum level of backups kept of previously compiled files. This defaults to 2 (see /etc/netscript/netscript-com- pile.conf), and it is also used by the netscript(8) compile command. -f Force compile even though compile file is up to date with definitions. The testing depends on the modification times of the defini- tion file inodes in the file system. -h Show a summary of options. -q Quiet compile. This option suppresses informational progress messages. FILES
/etc/netscript/ipfilter-defs.conf, /etc/netscript/ipfilter-defs-compiled.conf, /etc/netscript/ipfilter-defs directory. SEE ALSO
ipfilter-defs(5), netscript(8). AUTHOR
This manual page was written by Matthew Grant <grantma@anathoth.gen.nz>, for the Debian GNU/Linux system (but may be used by others). BUGS
I wrote this manpage when I was not half asleep... March 25, 2003 NET-COMPILE(8)
All times are GMT -4. The time now is 07:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy