yum 으로 간편하게 된다.

[root@localhost lua]# yum install lua-sql lua-posix lua-socket lua-filesystem lua-logging
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package lua-logging.noarch 0:1.1.4-1.fc8 set to be updated
---> Package lua-sql.i386 0:2.1.1-4.fc8 set to be updated
--> Processing Dependency: lua-sql-doc for package: lua-sql
--> Processing Dependency: lua-sql-mysql for package: lua-sql
--> Processing Dependency: lua-sql-postgresql for package: lua-sql
--> Processing Dependency: lua-sql-sqlite for package: lua-sql
---> Package lua-filesystem.i386 0:1.4.1-1.fc8 set to be updated
---> Package lua-socket.i386 0:2.0.2-2.fc8 set to be updated
---> Package lua-posix.i386 0:5.1.4-1.fc8 set to be updated
--> Running transaction check
---> Package lua-sql-mysql.i386 0:2.1.1-4.fc8 set to be updated
--> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15) for package: lua-sql-mysql
--> Processing Dependency: libmysqlclient.so.15 for package: lua-sql-mysql
---> Package lua-sql-postgresql.i386 0:2.1.1-4.fc8 set to be updated
--> Processing Dependency: libpq.so.5 for package: lua-sql-postgresql
---> Package lua-sql-sqlite.i386 0:2.1.1-4.fc8 set to be updated
---> Package lua-sql-doc.i386 0:2.1.1-4.fc8 set to be updated
--> Running transaction check
---> Package postgresql-libs.i386 0:8.2.11-1.fc8 set to be updated
---> Package mysql-libs.i386 0:5.0.45-6.fc8 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 lua-filesystem          i386       1.4.1-1.fc8      updates-newkey     24 k
 lua-logging             noarch     1.1.4-1.fc8      updates-newkey     26 k
 lua-posix               i386       5.1.4-1.fc8      updates-newkey     18 k
Installing for dependencies:
 lua-socket              i386       2.0.2-2.fc8      updates-newkey     88 k
 lua-sql                 i386       2.1.1-4.fc8      updates-newkey    2.4 k
 lua-sql-doc             i386       2.1.1-4.fc8      updates-newkey     20 k
 lua-sql-mysql           i386       2.1.1-4.fc8      updates-newkey    9.4 k
 lua-sql-postgresql      i386       2.1.1-4.fc8      updates-newkey    9.7 k
 lua-sql-sqlite          i386       2.1.1-4.fc8      updates-newkey    9.0 k
 mysql-libs              i386       5.0.45-6.fc8     updates-newkey    1.5 M
 postgresql-libs         i386       8.2.11-1.fc8     updates-newkey    198 k

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

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

'programming' 카테고리의 다른 글

svn+ssh 포트 번호 변경시 설정  (0) 2011.03.29
subversion 백업과 복원  (0) 2011.03.29
c2ps - C/C++ to Postscript Converter  (0) 2010.12.07
luasocket 설치  (0) 2010.10.07
맨날 헷갈리는 Makefile 패턴규칙 꼬릿말규칙  (0) 2010.08.18
Latest update: 2010. 12. 7. 22:33

c2ps - C/C++ to Postscript Converter


http://www.cs.technion.ac.il/users/c2ps/

c코드를 .ps 로 만들어 준다.


우분투에 설치해 봤는데 버퍼오버플로우 라네. 

*** buffer overflow detected ***: ./c2ps terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x50)[0xd0b990]
/lib/libc.so.6(+0xe488a)[0xd0a88a]
/lib/libc.so.6(__strcpy_chk+0x44)[0xd09c04]
./c2ps[0x8049df3]
./c2ps[0x804c07a]
/lib/libc.so.6(__libc_start_main+0xe7)[0xc3cce7]
./c2ps[0x80487d1]
======= Memory map: ========
00130000-00131000 r-xp 00000000 00:00 0          [vdso]
00bce000-00bea000 r-xp 00000000 08:01 268072     /lib/ld-2.12.1.so
00bea000-00beb000 r--p 0001b000 08:01 268072     /lib/ld-2.12.1.so
00beb000-00bec000 rw-p 0001c000 08:01 268072     /lib/ld-2.12.1.so
00c26000-00d7d000 r-xp 00000000 08:01 271744     /lib/libc-2.12.1.so
00d7d000-00d7e000 ---p 00157000 08:01 271744     /lib/libc-2.12.1.so
00d7e000-00d80000 r--p 00157000 08:01 271744     /lib/libc-2.12.1.so
00d80000-00d81000 rw-p 00159000 08:01 271744     /lib/libc-2.12.1.so
00d81000-00d84000 rw-p 00000000 00:00 0 
00d91000-00dab000 r-xp 00000000 08:01 262223     /lib/libgcc_s.so.1
00dab000-00dac000 r--p 00019000 08:01 262223     /lib/libgcc_s.so.1
00dac000-00dad000 rw-p 0001a000 08:01 262223     /lib/libgcc_s.so.1
08048000-08055000 r-xp 00000000 08:01 3284552    /usr/local/src/c2ps-4.0/c2ps
08055000-08056000 r--p 0000c000 08:01 3284552    /usr/local/src/c2ps-4.0/c2ps
08056000-08057000 rw-p 0000d000 08:01 3284552    /usr/local/src/c2ps-4.0/c2ps
08057000-08069000 rw-p 00000000 00:00 0 
087b2000-087d3000 rw-p 00000000 00:00 0          [heap]
b7888000-b7889000 rw-p 00000000 00:00 0 
b789a000-b789c000 rw-p 00000000 00:00 0 
bffdc000-bfffd000 rw-p 00000000 00:00 0          [stack]
Aborted





'programming' 카테고리의 다른 글

subversion 백업과 복원  (0) 2011.03.29
lua library 설치  (0) 2010.12.07
luasocket 설치  (0) 2010.10.07
맨날 헷갈리는 Makefile 패턴규칙 꼬릿말규칙  (0) 2010.08.18
printf 에서 % 기호 표시  (0) 2010.08.02
Latest update: 2010. 12. 7. 12:39

pvdisplay 로 physical volume name 을 확인

ex) pvdisplay /dev/sda6

  --- Physical volume ---
  PV Name               /dev/sda6
  VG Name               vg_f
  PV Size               12.91 GiB / not usable 3.00 MiB
  Allocatable           yes (but full)
  PE Size               4.00 MiB
  Total PE              3305
  Free PE               0
  Allocated PE          3305
  PV UUID               ketxUZ-20Lt-0wNT-yvGc-f9lv-Icwj-U0MGtV

Physical Volume 속성을 변경
vgchange -a y vg_f

-a 옵션: available 
y: yes


lvdisplay 로 logical volume name 을 확인

ex) lvdisplay vg_f

  --- Logical volume ---
  LV Name                /dev/vg_f/lv_root
  VG Name                vg_f
  LV UUID                OyRBC9-aWgu-35Lz-t1f0-bUzA-XHvD-qdqrb2
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                10.94 GiB
  Current LE             2801
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:0
   
  --- Logical volume ---
  LV Name                /dev/vg_f/lv_swap
  VG Name                vg_f
  LV UUID                o1QWLw-L1Qm-D82z-ZpZU-SE2W-HGaF-3Lli1Y
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                1.97 GiB
  Current LE             504
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:1

Logical Volume 을 mount
mount /dev/vg_f/lv_root


'OS > linux / unix' 카테고리의 다른 글

upstart - event.d : init replacement  (0) 2011.01.02
sed email regex  (0) 2010.10.16
ffmpeg 으로 리눅스 X11 화면을 동영상으로 만들기  (0) 2010.09.27
screen -e 옵션 (escape) 정리  (0) 2010.09.10
unixtime 변환  (0) 2010.08.25
Latest update: 2010. 11. 18. 10:37