| 여러장의 이미지 간단히 합치기 | 움직이는GIF만들기 | 썸네일 쉽게 만들기
분류 전체보기 (85)
I am (0)
Today (1)
개발자이야기 (11)
나만의 유용한정보 (7)
서버관련 (40)
지름신 (5)
사진/여행 (1)
끄적끄적 (5)
골프 (11)
주식 (2)

«   2024/12   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31
Visitors up to today!
Today hit, Yesterday hit
daisy rss
티스토리 가입하기!
'분류 전체보기'에 해당되는 글 85건
2008. 2. 12. 15:35

bind 설치시
checkhints: L.ROOT-SERVERS.NET/A (199.7.83.42) missing from hints

와 같은 에러가 나서보니 hint로 기술된 named.root 에 해당 내역이 없다..

wget ftp://ftp.internic.org/domain/named.root > named.hint

로 최신 root 도메인을 가져온다.
2008. 1. 28. 20:49
캐나다에 있는 아내가 필요하다고 요청해서 함 만들어봤따아....


일반 연결(허브와 컴퓨터)은 Direct 배열로..

컴퓨터 끼리 직접 연결은 Cross 로..

2008. 1. 28. 20:48

오디오(mp3)관련 포트 lame를 설치

/usr/ports/audio/lame]$ make install USE_NONDEFAULT_X11BASE=1

ffmpeg포트 설치

/usr/ports/multimedia/ffmpeg]$ make install USE_NONDEFAULT_X11BASE=1 WITH_LAME=1 FORCE_PKG_REGISTER=1

설치가 끝..

ffmpeg -i test.avi -r 32 -b 256 test.flv

flvtool2 -U test.flv

2008. 1. 28. 20:46

/usr/local/apache2/bin/apxs -cia mod_evasive20.c
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic    -g -O2 -I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/local/apache2/include   -c -o mod_evasive20.lo mod_evasive20.c && touch mod_evasive20.slo
gcc: mod_evasive20.c: No such file or directory
gcc: No input files specified
apxs:Error: Command failed with rc=65536

.

/usr/local/apache2/bluild/libtool 을 사용하지 않고, 기본 OS의 libtool을 사용하니 에러가 없어지고

잘되는군... 황당.

/usr/local/apache2/bin/apxs -cia mod_evasive20.c
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic    -g -O2 -I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/local/apache2/include   -c -o mod_evasive20.lo mod_evasive20.c && touch mod_evasive20.slo
/usr/local/apache2/build/libtool --silent --mode=link gcc -o mod_evasive20.la  -rpath /usr/local/apache2/modules -module -avoid-version    mod_evasive20.lo
/usr/local/apache2/build/instdso.sh SH_LIBTOOL='/usr/local/apache2/build/libtool' mod_evasive20.la /usr/local/apache2/modules
/usr/local/apache2/build/libtool --mode=install cp mod_evasive20.la /usr/local/apache2/modules/
cp .libs/mod_evasive20.so /usr/local/apache2/modules/mod_evasive20.so
cp .libs/mod_evasive20.lai /usr/local/apache2/modules/mod_evasive20.la
cp .libs/mod_evasive20.a /usr/local/apache2/modules/mod_evasive20.a
chmod 644 /usr/local/apache2/modules/mod_evasive20.a
ranlib /usr/local/apache2/modules/mod_evasive20.a
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/apache2/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
chmod 755 /usr/local/apache2/modules/mod_evasive20.so

2008. 1. 28. 20:45

php의 strpos와는 좀 틀리지만.,

문제열이 포함되어 있는지의 여부는 아래의 예제로 충분할듯.


#include <stdio.h>
#include <string.h>

main()
{
  char string[]="string to search";
  char   test[]="sear";

/* strstr returns a pointer into 'string'
* if 'test' is found' if not found, NULL
* is returned. */

  if (strstr(string, test)) puts("String found");

}