Perl bindings to the C library libconfig
-
First install libconfig and its development files.
-
RHEL(<8) or Centos(<8) :
yum install libconfig libconfig-devel -y
-
RHEL(>=8) or Centos(>=8) :
dnf install libconfig libconfig-devel -y
-
Debian or Ubuntu:
apt-get libconfig libconfig-dev -y
-
openSUSE:
# available in the Packman repository zypper install libconfig8 libconfig-devel
-
-
On other platforms, you can compile libconfig from source: http://www.hyperrealm.com/libconfig/
-
Install libconfig from source:
wget http://www.hyperrealm.com/libconfig/libconfig-1.3.2.tar.gz # Support libconfig-1.4.x # wget http://www.hyperrealm.com/libconfig/libconfig-1.4.7.tar.gz # Support libconfig-1.7.x # wget https://hyperrealm.github.io/libconfig/dist/libconfig-1.7.2.tar.gz tar -zxf libconfig-1.3.2.tar.gz cd libconfig-1.3.2 export MYPREFIX=/usr # or if you lack privileges for making system-wide changes: # export MYPREFIX=$HOME/local ./configure --prefix=$MYPREFIX make make install
-
To install this module, run the following commands:
perl Makefile.PL # or if you use a self-compiled libconfig as above: # perl Makefile.PL LIBS=-L$MYPREFIX/lib INC=-I$MYPREFIX/include make # If not using en_US system, you must set export LC_ALL=en_US.UTF-8 make test make install
- After installing, you can find documentation for this module with the perldoc command.
perldoc Conf::Libconfig
-
You can also look for information at:
-
RT, CPAN's request tracker
-
AnnoCPAN, Annotated CPAN documentation
-
CPAN Ratings
-
Search CPAN
-
-
Copyright (c) 2009, Alibaba Search Center, Alibaba Inc. All rights reserved.
-
Copyright (C) 2009-2023 cnangel
-
This program is released under the following license: bsd