adsense_main_top_wide


truecrypt on CENTOS5 간만에 희대의 닭짓 메모

일단 트루크립트 최신 Readme 내용


II. Linux and Mac OS X
======================

Requirements for Building TrueCrypt for Linux and Mac OS X:
-----------------------------------------------------------

- GNU Make
- GNU C++ Compiler 4.0 or compatible
- Apple XCode SDK (Mac OS X only)
- pkg-config
- wxWidgets 2.8 library source code (available at http://www.wxwidgets.org)
- FUSE library (available at http://fuse.sourceforge.net and
  http://code.google.com/p/macfuse)


Instructions for Building TrueCrypt for Linux and Mac OS X:
-----------------------------------------------------------

1) Change the current directory to the root of the TrueCrypt source code.

2) Run the following command to configure the wxWidgets library for TrueCrypt
   and to build it:

   $ make WX_ROOT=/usr/src/wxWidgets wxbuild

   The variable WX_ROOT must point to the location of the source code of the
   wxWidgets library. Output files will be placed in the './wxrelease/'
   directory.

3) To build TrueCrypt, run the following command:

   $ make

4) If successful, the TrueCrypt executable should be located in the directory
   'Main'.

By default, an universal executable supporting both graphical and text user
interface is built. To build a console-only executable, use 'NOGUI' parameter:

   $ make NOGUI=1 WX_ROOT=/usr/src/wxWidgets wxbuild
   $ make NOGUI=1

 

III. Third-Party Developers (Contributors)
==========================================

If you intend to implement a feature, please contact us first to make sure:

1) That the feature has not been implemented (we may have already implemented
   it, but haven't released the code yet).
2) That the feature is acceptable.
3) Whether we need help of third-party developers with implementing the feature.

Information on how to contact us can be found at:
http://www.truecrypt.org/contact.php 



fuse  다운로드 및 설치
커널 소스 필요함. yum 은 버전 구분이 없어서..커널 업데이트 안 할 경우 커널 소스 설치에 에라가 만발함. 알아서 처리

[root@cent ~]# wget http://downloads.sourceforge.net/fuse/fuse-2.7.3.tar.gz
--17:04:57--  http://downloads.sourceforge.net/fuse/fuse-2.7.3.tar.gz
Resolving downloads.sourceforge.net... 216.34.181.60
Connecting to downloads.sourceforge.net|216.34.181.60|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://nchc.dl.sourceforge.net/sourceforge/fuse/fuse-2.7.3.tar.gz [following]
--17:04:58--  http://nchc.dl.sourceforge.net/sourceforge/fuse/fuse-2.7.3.tar.gz
Resolving nchc.dl.sourceforge.net... 211.79.60.17, 2001:e10:ffff:1f02::17
Connecting to nchc.dl.sourceforge.net|211.79.60.17|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 506362 (494K) [application/x-gzip]
Saving to: `fuse-2.7.3.tar.gz.1'

100%[=========================================>] 506,362     72.4K/s   in 7.3s

17:05:06 (67.5 KB/s) - `fuse-2.7.3.tar.gz.1' saved [506362/506362]

[root@cent fuse-2.7.3]# yum install kernel-source
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Nothing to do
[root@cent fuse-2.7.3]# yum install kernel-devel
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for kernel-devel to pack into transaction set.
kernel-devel-2.6.18-53.1. 100% |=========================| 755 kB    00:00
---> Package kernel-devel.i686 0:2.6.18-53.1.21.el5 set to be installed
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 kernel-devel            i686       2.6.18-53.1.21.el5  updates           4.7 M

Transaction Summary
=============================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 4.7 M
Is this ok [y/N]: y
Downloading Packages:
(1/1): kernel-devel-2.6.1 100% |=========================| 4.7 MB    00:02
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: kernel-devel                 ######################### [1/1]


Installed: kernel-devel.i686 0:2.6.18-53.1.21.el5
Complete!
[root@cent fuse-2.7.3]#



fuse configure

[root@cent fuse-2.7.3]# ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 32768
checking whether the shell understands some XSI constructs... yes
checking for /usr/bin/ld option to reload object files... -r
checking how to recognise dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... cat: ld.so.conf.d/*.conf: No such file or directory
GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for fork... yes
checking for setxattr... yes
checking for fdatasync... yes
checking for struct stat.st_atim... yes
checking for struct stat.st_atimespec... no
checking for library containing dlopen... -ldl
checking for library containing clock_gettime... -lrt
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for iconv... yes
checking for iconv declaration...
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
configure: creating ./config.status
config.status: creating fuse.pc
config.status: creating Makefile
config.status: creating lib/Makefile
config.status: creating util/Makefile
config.status: creating example/Makefile
config.status: creating include/Makefile
config.status: creating include/config.h
config.status: include/config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
=== configuring in kernel (/root/fuse-2.7.3/kernel)
configure: running /bin/sh ./configure '--prefix=/usr/local'  --cache-file=/dev/null --srcdir=.
checking for a BSD-compatible install... /usr/bin/install -c
checking if FUSE is loaded as a module... no
checking if FUSE module is built into the kernel... no
checking if FUSE module is from official kernel... no
checking kernel source directory... /usr/src/kernels/2.6.18-53.1.21.el5-i686
checking kernel build directory... /usr/src/kernels/2.6.18-53.1.21.el5-i686
checking kernel source version... 2.6.18-53.1.21.el5
checking if FUSE is configured in the kernel... no
checking if kernel defines kzalloc function... yes
checking if kernel defines fs_subsys... yes
checking whether lookup_instantiate_filp is defined... yes
checking if umount_begin is passed a vfsmount... yes
checking if inode has i_blksize field... no
checking if inode has i_private field... yes
checking if inode has i_mutex field ... yes
checking if kernel has mutex.h ... yes
checking if kernel has exportfs.h ... no
checking if kernel has BLOCK option ... no
checking if this is user mode linux... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h


make는 길어서 생략

make install.

wxWidget 은 소스만 필요.

#yum install gtk+-devel ..잊지 말고.

truecrypt 재 시도 

[root@cent truecrypt-5.1a-source]# make WX_ROOT=/root/wxWidgets-2.8.7 wxbuild
Configuring wxWidgets library...

역시 에러.

The development files for GTK+ were not found. For GTK+ 2, please
ensure that pkg-config is in the path and that gtk+-2.0.pc is
installed. For GTK+ 1.2 please check that gtk-config is in the path,
and that the version is 1.2.3 or above. Also check that the
libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
--libs' are in the LD_LIBRARY_PATH or equivalent.

곤란하다.

또 한번 gtk관련 devel

yum install gtk2-devel ...은 너무 기니까 일단

yum install gtk2
-wxWidget 재시도 역시 에러 뜸. 별 수 없이 gtk2-devel까지 감.

아 놔. 초기에 xwindow 안 올린 닭짓의 여파인가.

잠시 확인

[root@cent truecrypt-5.1a-source]# rpm -qa | grep gtk
gtk2-2.10.4-19.el5
usermode-gtk-1.88-3.el5
gtk+-1.2.10-56.el5
pygtk2-2.10.1-8.el5
authconfig-gtk-5.3.12-2.el5
gtk2-engines-2.8.0-3.el5
pygtk2-libglade-2.10.1-8.el5
gtk+-devel-1.2.10-56.el5


씁. 부족해? 잠시 웹 검색

http://ubuntuforums.org/showthread.php?t=490100

Re: Missing gtk+-2.0.pc during configure

Quote:
Originally Posted by Contrarian View Post
I'm on a pretty fresh FF install, and getting the error when trying to configure an app to compile & install:

checking for gtk+-2.0 >= 2.0.0... Package gtk+-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gtk+-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gtk+-2.0' found
configure: error: Library requirements (gtk+-2.0 >= 2.0.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.

I've looked in synaptic and tried some attempts to install this package with aptitude but getting nowhere. Can anyone point me in the right direction?
You usually need to install the dev packages to compile from source.
__________________
"The superior man understands what is right; the inferior man understands what will sell"
--Confucius


...어어쭈우.......

결국 yum-install gtk2-devel

[root@cent truecrypt-5.1a-source]# yum install gtk2-devel
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package gtk2-devel.i386 0:2.10.4-19.el5 set to be updated
--> Running transaction check
--> Processing Dependency: gtk2 = 2.10.4-19.el5 for package: gtk2-devel
--> Processing Dependency: libXcursor-devel for package: gtk2-devel
--> Processing Dependency: libXinerama-devel for package: gtk2-devel
--> Processing Dependency: cairo-devel >= 1.2.0-1 for package: gtk2-devel
--> Processing Dependency: atk-devel >= 1.9.0-1 for package: gtk2-devel
--> Processing Dependency: glib2-devel >= 2.12.0-1 for package: gtk2-devel
--> Processing Dependency: libXrandr-devel for package: gtk2-devel
--> Processing Dependency: libXfixes-devel for package: gtk2-devel
--> Processing Dependency: pango-devel >= 1.13.0-1 for package: gtk2-devel
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for cairo-devel to pack into transaction set.
cairo-devel-1.2.4-3.el5_1 100% |=========================|  15 kB    00:00
---> Package cairo-devel.i386 0:1.2.4-3.el5_1 set to be updated
---> Downloading header for pango-devel to pack into transaction set.
pango-devel-1.14.9-3.el5.  27% |======                   | 8.0 kB    00:04 ETA



이 시점에서 이미 반쯤 정신 나감. 아 놔.

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 gtk2-devel              i386       2.10.4-19.el5    base              2.8 M
Installing for dependencies:
 atk-devel               i386       1.12.2-1.fc6     base              126 k
 cairo-devel             i386       1.2.4-3.el5_1    updates           130 k
 fontconfig-devel        i386       2.4.1-7.el5      updates           168 k
 freetype-devel          i386       2.2.1-19.el5     base              150 k
 glib2-devel             i386       2.12.3-2.fc6     base              1.3 M
 libXcursor-devel        i386       1.1.7-1.1        base               14 k
 libXfixes-devel         i386       4.0.1-2.1        base              9.4 k
 libXft-devel            i386       2.1.10-1.1       base               16 k
 libXinerama-devel       i386       1.0.1-2.1        base              5.1 k
 libXrandr-devel         i386       1.1.1-3.1        base               14 k
 libXrender-devel        i386       0.9.1-3.1        base              8.8 k
 libpng-devel            i386       2:1.2.10-7.1.el5_0.1  updates           182 k
 pango-devel             i386       1.14.9-3.el5.centos  base              282 k
 zlib-devel              i386       1.2.3-3          base              101 k
Updating for dependencies:
 cairo                   i386       1.2.4-3.el5_1    updates           394 k
 freetype                i386       2.2.1-19.el5     base              313 k
 gtk2                    i386       2.10.4-19.el5    base              6.5 M
 libpng                  i386       2:1.2.10-7.1.el5_0.1  updates           242 k

Transaction Summary
=============================================================================
Install     15 Package(s)
Update       4 Package(s)
Remove       0 Package(s)

Total download size: 13 M
Is this ok [y/N]:



아. 놔.

일단 완료.  어디 한번 보자.

[root@cent truecrypt-5.1a-source]# rpm -qa | grep gtk
gtk2-2.10.4-19.el5
usermode-gtk-1.88-3.el5
gtk+-1.2.10-56.el5
pygtk2-2.10.1-8.el5
authconfig-gtk-5.3.12-2.el5
gtk2-engines-2.8.0-3.el5
pygtk2-libglade-2.10.1-8.el5
gtk+-devel-1.2.10-56.el5
gtk2-devel-2.10.4-19.el5
[root@cent truecrypt-5.1a-source]#


나왔다 gtk+-2.0.pc

[root@cent truecrypt-5.1a-source]# locate gtk+-2.0.pc
[root@cent truecrypt-5.1a-source]# updatedb
[root@cent truecrypt-5.1a-source]# locate gtk+-2.0.pc
/usr/lib/pkgconfig/gtk+-2.0.pc


이쯤에서 입은 이미 10m쯤 튀어 나옴

[root@cent truecrypt-5.1a-source]# rpm -qf /usr/lib/pkgconfig/gtk+-2.0.pc
gtk2-devel-2.10.4-19.el5



다시 wxbuild

[root@cent truecrypt-5.1a-source]# make WX_ROOT=/root/wxWidgets-2.8.7 wxbuild
Configuring wxWidgets library...
configure: WARNING: libSM not found; disabling session management detection



그럼 그럼. 쉽게 끝내줄리가 없지.

어디보자 ...

[root@cent truecrypt-5.1a-source]# rpm -qa | grep libSM
libSM-1.0.1-3.1


[root@cent truecrypt-5.1a-source]# yum install libSM-devel
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for libSM-devel to pack into transaction set.
libSM-devel-1.0.1-3.1.i38 100% |=========================| 5.2 kB    00:00
---> Package libSM-devel.i386 0:1.0.1-3.1 set to be updated
--> Running transaction check
--> Processing Dependency: libICE-devel for package: libSM-devel
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for libICE-devel to pack into transaction set.
libICE-devel-1.0.1-2.1.i3 100% |=========================| 5.2 kB    00:00
---> Package libICE-devel.i386 0:1.0.1-2.1 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 libSM-devel             i386       1.0.1-3.1        base              9.4 k
Installing for dependencies:
 libICE-devel            i386       1.0.1-2.1        base               13 k

Transaction Summary
=============================================================================
Install      2 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 22 k
Is this ok [y/N]:



YATTA

 [root@cent truecrypt-5.1a-source]# make WX_ROOT=/root/wxWidgets-2.8.7 wxbuild
 Configuring wxWidgets library...



세월아 네월아. 이번에 안되면 진짜 울지도 모른다.










adsense

이 이글루를 링크한 사람 (화이트)

26