How to install sendmail in CentOS? - linux

I want ask " how to manual install sendmail in CentOS " .
I can install it by command "yum install" , but i need install manual .
I went to the homepage http://www.sendmail.com/sm/open_source/download/
and download the "sendmail.8.14.9.tar.gz" but do not know how to install It . I try unrar and type the command "./Build" but it is't work
Here is error :
/home/duc/Desktop/sendmail-8.14.9/libsm
Configuration: pfx=, os=Linux, rel=2.6.32-431.el6.x86_64, rbase=2, rroot=2.6.32-431.el6, arch=x86_64, sfx=, variant=optimized
Making in /home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm
make[1]: Entering directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm'
cc -O2 -I. -I../../include -c -o assert.o assert.c
make[1]: cc: Command not found
make[1]: *** [assert.o] Error 127
make[1]: Leaving directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm'
Making all in:
/home/duc/Desktop/sendmail-8.14.9/libsmutil
Configuration: pfx=, os=Linux, rel=2.6.32-431.el6.x86_64, rbase=2, rroot=2.6.32-431.el6, arch=x86_64, sfx=, variant=optimized
Making in /home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsmutil
make[1]: Entering directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsmutil'
cc -O2 -I. -I../../sendmail -I../../include -DNOT_SENDMAIL -c -o debug.o debug.c
make[1]: cc: Command not found
make[1]: *** [debug.o] Error 127
make[1]: Leaving directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsmutil'
Making all in:
/home/duc/Desktop/sendmail-8.14.9/libsmdb
Configuration: pfx=, os=Linux, rel=2.6.32-431.el6.x86_64, rbase=2, rroot=2.6.32-431.el6, arch=x86_64, sfx=, variant=optimized
Making in /home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsmdb
make[1]: Entering directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsmdb'
cc -O2 -I. -I../../sendmail -I../../include -DNOT_SENDMAIL -c -o smdb.o smdb.c
make[1]: cc: Command not found
make[1]: *** [smdb.o] Error 127
make[1]: Leaving directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsmdb'
Making all in:
/home/duc/Desktop/sendmail-8.14.9/sendmail
Configuration: pfx=, os=Linux, rel=2.6.32-431.el6.x86_64, rbase=2, rroot=2.6.32-431.el6, arch=x86_64, sfx=, variant=optimized
Making in /home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/sendmail
make[1]: Entering directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/sendmail'
(cd ../../libsm; sh Build )
Configuration: pfx=, os=Linux, rel=2.6.32-431.el6.x86_64, rbase=2, rroot=2.6.32-431.el6, arch=x86_64, sfx=, variant=optimized
Making in /home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm
make[2]: Entering directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm'
cc -O2 -I. -I../../include -c -o assert.o assert.c
make[2]: cc: Command not found
make[2]: *** [assert.o] Error 127
make[2]: Leaving directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm'
make[1]: *** [/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm/libsm.a] Error 2
make[1]: Leaving directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/sendmail'
Making all in:
/home/duc/Desktop/sendmail-8.14.9/editmap
Configuration: pfx=, os=Linux, rel=2.6.32-431.el6.x86_64, rbase=2, rroot=2.6.32-431.el6, arch=x86_64, sfx=, variant=optimized
Making in /home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/editmap
make[1]: Entering directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/editmap'
(cd ../../libsm; sh Build )
Configuration: pfx=, os=Linux, rel=2.6.32-431.el6.x86_64, rbase=2, rroot=2.6.32-431.el6, arch=x86_64, sfx=, variant=optimized
Making in /home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm
make[2]: Entering directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm'
cc -O2 -I. -I../../include -c -o assert.o assert.c
make[2]: cc: Command not found
make[2]: *** [assert.o] Error 127
make[2]: Leaving directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm'
make[1]: *** [/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm/libsm.a] Error 2
make[1]: Leaving directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/editmap'
Please help me !! Sorry for my bad english

It can't find C compiler:
make[1]: cc: Command not found
The build system is reading value of CC environment variable, so assign it a path to your compiler, e.g.
export CC=/usr/bin/gcc

As Oleksandr Kravchuk said, you need to link your gcc to cc. First try to execute below commands.
$ which gcc
If you have gcc packages on your server, you can see the output of your commands.
$ which gcc
/usr/bin/gcc
$
If you have root privileges, please make symbolic link of gcc to /usr/bin/cc.
$ sudo ln -s /usr/bin/gcc /usr/bin/cc
Then it'll be works.

Related

Error installing GDBM 1.10

First, i did ./configure
Then, i did make install and Terminal show this:
make[2]: Entering directory `/home/lucas/Área de Trabalho/gdbm-1.10/src'
test -z "/usr/local/lib" || /bin/mkdir -p "/usr/local/lib"
/bin/bash ../libtool --mode=install /usr/bin/install -c libgdbm.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libgdbm.so.4.0.0 /usr/local/lib/libgdbm.so.4.0.0
/usr/bin/install: cannot create regular file '/usr/local/lib/libgdbm.so.4.0.0': Permission denied
make[2]: * [install-libLTLIBRARIES] Error 1
make[2]: Leaving directory `/home/lucas/Área de Trabalho/gdbm-1.10/src'
make[1]: * [install-am] Error 2
make[1]: Leaving directory `/home/lucas/Área de Trabalho/gdbm-1.10/src'
make: * [install-recursive] Error 1
Any help?
You do not have permissions to write to /usr/local/lib
sudo make install
or become root and run make install

FTDI D2XX library works with Ubuntu, but shows error on ezsdk cross compilation

I want to write a program to read from an FTDI device using the D2XX library in ezsdk 6.0 BeagleBoard.
I use Ubuntu 12.04 LTS (Precise Pangolin) for compilation.
I downloaded libftd2xx1.1.12.tar.gz from http://www.ftdichip.com
Unpacked the archive
Copied arm926 lib files to \usr\local\lib
Created a symbolic link with proper permission and
cross compiled
with the arm-linux-gnueabihf-gcc toolchain
I followed (http://www.ftdichip.com/Drivers/D2XX/Linux/ReadMe-linux.txt) and on cross compiling it shows the error 'cannot find -lftd2xx'
shihab#shihab:~/Downloads/release/examples$ make -B CC=arm-linux-gnueabihf-gcc
for n in BitMode EEPROM/erase EEPROM/read EEPROM/write EEPROM/user/read EEPROM/user/size EEPROM/user/write Events LargeRead MultiThread SetVIDPID Simple Timeouts ; do make -C $n || exit 1; done
make[1]: Entering directory `/home/shihab/Downloads/release/examples/BitMode'
arm-linux-gnueabihf-gcc main.c -o bitmode -Wall -Wextra -L. -lftd2xx -Wl,-rpath /usr/local/lib
/usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lftd2xx
collect2: ld returned 1 exit status
make[1]: *** [bitmode] Error 1
make[1]: Leaving directory `/home/shihab/Downloads/release/examples/BitMode'
make: *** [subdirs] Error 1
shihab#shihab:~/Downloads/release/examples$
But when I followed it for i386 architecture it compiles fine
Unpacked the archive
Copied i386 lib files to \usr\local\lib
Created a symbolic link with proper permission and
compiled gcc
it compiles fine.
shihab#shihab:~/Downloads/release/examples$ make -B
for n in BitMode EEPROM/erase EEPROM/read EEPROM/write EEPROM/user/read EEPROM/user/size EEPROM/user/write Events LargeRead MultiThread SetVIDPID Simple Timeouts ; do make -C $n || exit 1; done
make[1]: Entering directory `/home/shihab/Downloads/release/examples/BitMode'
gcc main.c -o bitmode -Wall -Wextra -L. -lftd2xx -Wl,-rpath /usr/local/lib
make[1]: Leaving directory `/home/shihab/Downloads/release/examples/BitMode'
make[1]: Entering directory `/home/shihab/Downloads/release/examples/EEPROM/erase'
gcc main.c -o erase -Wall -Wextra -L. -lftd2xx -Wl,-rpath /usr/local/lib
make[1]: Leaving directory `/home/shihab/Downloads/release/examples/EEPROM/erase'
make[1]: Entering directory `/home/shihab/Downloads/release/examples/EEPROM/read'
gcc main.c -o read -Wall -Wextra -L. -lftd2xx -Wl,-rpath /usr/local/lib
make[1]: Leaving directory `/home/shihab/Downloads/release/examples/EEPROM/read'
make[1]: Entering directory `/home/shihab/Downloads/release/examples/EEPROM/write'
gcc main.c -o write -Wall -Wextra -L. -lftd2xx -Wl,-rpath /usr/local/lib
make[1]: Leaving directory `/home/shihab/Downloads/release/examples/EEPROM/write'
make[1]: Entering directory `/home/shihab/Downloads/release/examples/EEPROM/user/read'
gcc main.c -o readua -Wall -Wextra -L. -lftd2xx -Wl,-rpath /usr/local/lib
make[1]: Leaving directory `/home/shihab/Downloads/release/examples/EEPROM/user/read'
make[1]: Entering directory `/home/shihab/Downloads/release/examples/EEPROM/user/size'
gcc main.c -o sizeua -Wall -Wextra -L. -lftd2xx -Wl,-rpath /usr/local/lib
make[1]: Leaving directory `/home/shihab/Downloads/release/examples/EEPROM/user/size'
make[1]: Entering directory `/home/shihab/Downloads/release/examples/EEPROM/user/write'
gcc main.c -o writeua -Wall -Wextra -L. -lftd2xx -Wl,-rpath /usr/local/lib
make[1]: Leaving directory `/home/shihab/Downloads/release/examples/EEPROM/user/write'
make[1]: Entering directory `/home/shihab/Downloads/release/examples/Events'
gcc main.c -o events -Wall -Wextra -L. -lftd2xx -Wl,-rpath /usr/local/lib
make[1]: Leaving directory `/home/shihab/Downloads/release/examples/Events'
make[1]: Entering directory `/home/shihab/Downloads/release/examples/LargeRead'
gcc main.c -o largeread -Wall -Wextra -L. -lftd2xx -Wl,-rpath /usr/local/lib
make[1]: Leaving directory `/home/shihab/Downloads/release/examples/LargeRead'
make[1]: Entering directory `/home/shihab/Downloads/release/examples/MultiThread'
gcc main.c -o multi -Wall -Wextra -L. -lftd2xx -Wl,-rpath /usr/local/lib
make[1]: Leaving directory `/home/shihab/Downloads/release/examples/MultiThread'
make[1]: Entering directory `/home/shihab/Downloads/release/examples/SetVIDPID'
gcc main.c -o setVIDPID -Wall -Wextra -L. -lftd2xx -Wl,-rpath /usr/local/lib
make[1]: Leaving directory `/home/shihab/Downloads/release/examples/SetVIDPID'
make[1]: Entering directory `/home/shihab/Downloads/release/examples/Simple'
gcc main.c -o simple -Wall -Wextra -L. -lftd2xx -Wl,-rpath /usr/local/lib
make[1]: Leaving directory `/home/shihab/Downloads/release/examples/Simple'
make[1]: Entering directory `/home/shihab/Downloads/release/examples/Timeouts'
gcc main.c -o timeouts -Wall -Wextra -L. -lftd2xx -Wl,-rpath /usr/local/lib
make[1]: Leaving directory `/home/shihab/Downloads/release/examples/Timeouts'
shihab#shihab:~/Downloads/release/examples$ cd EEPROM/read/
shihab#shihab:~/Downloads/release/examples/EEPROM/read$ ./read
Library version = 0x10112
Opening port 0
FT_Open(0) failed
shihab#shihab:~/Downloads/release/examples/EEPROM/read$
There is no 'cannot find -lftd2xx' error, and it compiles fine.
I am new to Linux; what is wrong with my steps?
You need to unload ftdi_ser module (by rmmod ftdi_sio before you can use the ftd2xx library. As the kernel loads the ftdi_sio module automatically, you may need to put it on a blacklist.
The library published on the FTDI homepage is not compiled for arm-hf. A version compiled for arm_hf is available here
Kernel versions are different..
arm926 built for kernel version 2.6.32
Ezsdk 6.0 for beagleboard XM uses kernel version 3.3.7
I think, need to use open source library (http://www.intra2net.com/en/developer/libftdi/)

FreeBSD phpEclipse installation error

Im new to FreeBSD and I'm attempting to install PHP-Eclipse. During the installation process I get the following error. Does anyone know what it mean and how to fix it? Thanks.
Below is the the output:
[echo] +---------------------------------------+
[echo] + Finishing ant project jaxws
[echo] +---------------------------------------+
BUILD SUCCESSFUL
Total time: 12 seconds
gmake[2]: Leaving directory `/usr/ports/java/openjdk6/work/jaxws/make'
/bin/mkdir -p /usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir
/bin/mkdir -p /usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/import
cd ./hotspot/make && \
gmake JDK_TOPDIR=/usr/ports/java/openjdk6/work/jdk JDK_MAKE_SHARED_DIR=/usr/ports/java/openjdk6/work/jdk/make/common/shared EXTERNALSANITYCONTROL=true TARGET_CLASS_VERSION=5 MILESTONE=fcs BUILD_NUMBER=b24 JDK_BUILD_NUMBER=b24 FULL_VERSION=1.6.0_30-b24 PREVIOUS_JDK_VERSION=1.6.0 JDK_VERSION=1.6.0_30 JDK_MKTG_VERSION=6u30 JDK_MAJOR_VERSION=1 JDK_MINOR_VERSION=6 JDK_MICRO_VERSION=0 ARCH_DATA_MODEL=64 COOKED_JDK_UPDATE_VERSION=300 COOKED_BUILD_NUMBER=24 ANT_HOME="/usr/ports/java/openjdk6/work/apache-ant-1.8.2" ALT_OUTPUTDIR=/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir ALT_EXPORT_PATH=/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/import ALT_SLASH_JAVA=/NOT-SET ALT_BOOTDIR=/usr/local/jdk1.6.0 ALT_LANGTOOLS_DIST=/usr/ports/java/openjdk6/work/build/bsd-i386/langtools/dist all_product
gmake[2]: Entering directory `/usr/ports/java/openjdk6/work/hotspot/make'
Makefile:375: target `/Xusage.txt' given more than once in the same rule.
cd /usr/ports/java/openjdk6/work/hotspot/make; \
gmake VM_TARGET=product generic_build2 ALT_OUTPUTDIR=/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir
gmake[3]: Entering directory `/usr/ports/java/openjdk6/work/hotspot/make'
Makefile:375: target `/Xusage.txt' given more than once in the same rule.
mkdir -p /usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir
cd /usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir; \
gmake -f /usr/ports/java/openjdk6/work/hotspot/make/bsd/Makefile \
LP64=1 JAVA_HOME=/usr/local/jdk1.6.0 OUTPUTDIR=/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir GAMMADIR=/usr/ports/java/openjdk6/work/hotspot MAKE_VERBOSE=y HOTSPOT_RELEASE_VERSION=20.0-b12 JRE_RELEASE_VERSION=1.6.0_30-b24 HOTSPOT_BUILD_VERSION= product
gmake[4]: Entering directory `/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir'
cd bsd_amd64_compiler2/product && gmake -w " LP64=1 "
gmake[5]: Entering directory `/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir/bsd_amd64_compiler2/product'
gmake[6]: Entering directory `/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir/bsd_amd64_compiler2/product'
Compiling /usr/ports/java/openjdk6/work/hotspot/src/share/vm/adlc/adlparse.cpp
rm -f ../generated/adfiles/adlparse.o
/usr/bin/g++ -D_ALLBSD_SOURCE -D_GNU_SOURCE -DAMD64 -I/usr/ports/java/openjdk6/work/hotspot/src/share/vm -I/usr/ports/java/openjdk6/work/hotspot/src/share/vm/prims -I/usr/ports/java/openjdk6/work/hotspot/src/cpu/x86/vm -I/usr/ports/java/openjdk6/work/hotspot/src/os/bsd/vm -I/usr/ports/java/openjdk6/work/hotspot/src/os_cpu/bsd_x86/vm -I/usr/ports/java/openjdk6/work/hotspot/src/share/vm/adlc -I../generated -DASSERT -O2 -pipe -fno-strict-aliasing -DTARGET_OS_FAMILY_bsd -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_bsd_x86 -DTARGET_OS_ARCH_MODEL_bsd_x86_64 -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1 -fno-rtti -fno-exceptions -pthread -fcheck-new -m64 -pipe -DTARGET_OS_FAMILY_bsd -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_bsd_x86 -DTARGET_OS_ARCH_MODEL_bsd_x86_64 -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1 -fno-rtti -fno-exceptions -pthread -fcheck-new -m64 -pipe -Werror -g -c -o ../generated/adfiles/adlparse.o /usr/ports/java/openjdk6/work/hotspot/src/share/vm/adlc/adlparse.cpp
/usr/ports/java/openjdk6/work/hotspot/src/share/vm/adlc/adlparse.cpp:1: sorry, unimplemented: 64-bit mode not compiled in
gmake[6]: *** [../generated/adfiles/adlparse.o] Error 1
gmake[6]: Leaving directory `/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir/bsd_amd64_compiler2/product'
gmake[5]: *** [ad_stuff] Error 2
gmake[5]: Leaving directory `/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir/bsd_amd64_compiler2/product'
gmake[4]: *** [product] Error 2
gmake[4]: Leaving directory `/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir'
gmake[3]: *** [generic_build2] Error 2
gmake[3]: Leaving directory `/usr/ports/java/openjdk6/work/hotspot/make'
gmake[2]: *** [product] Error 2
gmake[2]: Leaving directory `/usr/ports/java/openjdk6/work/hotspot/make'
gmake[1]: *** [hotspot-build] Error 2
gmake[1]: Leaving directory `/usr/ports/java/openjdk6/work'
gmake: *** [build_product_image] Error 2
*** Error code 1
Stop in /usr/ports/java/openjdk6.
*** Error code 1
Stop in /usr/ports/java/openjdk6.
*** Error code 1
Stop in /usr/ports/java/eclipse.
*** Error code 1
Stop in /usr/ports/java/eclipse.
*** Error code 1
Stop in /usr/ports/java/phpeclipse.
The problem seems to be the -m64 in the compiler flags.
Did you have set any custom CFLAGS or CPUTYPE in /etc/make.conf? If yes remove them
If not, you might try to install openjdk from a binart package with pkg_add

How can I link rpmdb library with makefile?

I try to install nautilus-rpm in Fedora 15.
This is error message.
[test#localhost nautilus-rpm-0.1]$ make
make all-recursive
make[1]: Entering directory `/home/designmade/다운로드/nautilus-rpm-0.1'
Making all in src
make[2]: Entering directory `/home/designmade/다운로드/nautilus-rpm-0.1/src'
/bin/sh ../libtool --mode=link gcc -g -O2 -Wall -o librpmdb-method.la -rpath /usr/local/lib/gnome-vfs-2.0/modules -module -avoid-version rpmdb.lo -pthread -lgnomevfs-2 -lgconf-2 -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lrpm -lrpmdb -lrpmio -lpopt
rm -fr .libs/librpmdb-method.la .libs/librpmdb-method.* .libs/librpmdb-method.*
gcc -shared rpmdb.lo -lgnomevfs-2 -lgconf-2 -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lrpm -lrpmdb -lrpmio -lpopt -Wl,-soname -Wl,librpmdb-method.so -o .libs/librpmdb-method.so
/usr/bin/ld: cannot find -lrpmdb
collect2: ld returned 1 exit status
make[2]: *** [librpmdb-method.la] 오류 1
make[2]: Leaving directory `/home/designmade/다운로드/nautilus-rpm-0.1/src'
make[1]: *** [all-recursive] 오류 1
make[1]: Leaving directory `/home/designmade/다운로드/nautilus-rpm-0.1'
make: *** [all] 오류 2
and I try to find files about rpmdb.
[root#localhost nautilus-rpm-0.1]# find / -name *rpmdb*
/var/lib/yum/rpmdb-indexes
/usr/bin/rpmdb
/usr/lib/rpm/rpmdb_load
/usr/lib/rpm/rpmdb_verify
/usr/lib/rpm/rpmdb_loadcvt
/usr/lib/rpm/rpmdb_recover
/usr/lib/rpm/rpmdb_dump
/usr/lib/rpm/rpmdb_stat
/usr/lib/rpm/rpmdb_upgrade
/usr/include/rpm/rpmdb.h
/usr/share/man/man8/rpmdb.8.gz
/home/test/다운로드/nautilus-rpm-0.1/src/.deps/rpmdb.Plo
/home/test/다운로드/nautilus-rpm-0.1/src/rpmdb.desktop.in
/home/test/다운로드/nautilus-rpm-0.1/src/rpmdb.lo
/home/test/다운로드/nautilus-rpm-0.1/src/rpmdb.o
/home/test/다운로드/nautilus-rpm-0.1/src/rpmdb.conf
/home/designmade/다운로드/nautilus-rpm-0.1/src/rpmdb.c
/home/designmade/다운로드/nautilus-rpm-0.1/src/rpmdb.keys.in
I can't understand why it doesn't work.
You need a development package containing librpmdb.so.
librpmdb merged with librpm in 4.6:
http://community.ingres.com/forum/database-general/2467-gui-installer-wont-work-fedora-core-10-a.html
So use -lrpm instead.

Thrift Make Error

I can't compile thrift properly, when I use make, this is the output:
make all
make all-recursive
make[1]: Entering directory `/root/thrift'
Making all in compiler/cpp
make[2]: Entering directory `/root/thrift/compiler/cpp'
make all-am
make[3]: Entering directory `/root/thrift/compiler/cpp'
g++ -DHAVE_CONFIG_H -I. -I../.. -Wall -I./src -D PTHREAD_MUTEX_RECURSIVE_NP=PTHREAD_MUTEX_RECURSIVE -MT thrift-thrifty.o -MD -MP -MF .deps/thrift-thrifty.Tpo -c -o thrift-thrifty.o `test -f 'thrifty.cc' || echo './'`thrifty.cc
In file included from /usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:41,
from /usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr.h:162,
from /usr/include/c++/4.4/ext/atomicity.h:34,
from /usr/include/c++/4.4/bits/basic_string.h:41,
from /usr/include/c++/4.4/string:53,
from ./src/main.h:23,
from thrifty.yy:33:
/usr/include/pthread.h:55: error: redefinition of 'PTHREAD_MUTEX_RECURSIVE'
/usr/include/pthread.h:49: error: 'PTHREAD_MUTEX_RECURSIVE' previously defined here
make[3]: *** [thrift-thrifty.o] Error 1
make[3]: Leaving directory `/root/thrift/compiler/cpp'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/thrift/compiler/cpp'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/thrift'
make: *** [all] Error 2
Any ideas? thanks :)

Resources