20170615 포스트 스크랩

Tags

20170601 포스트 스크랩

Tags

Hello, cython mini-HOWTO

기존에 python(__main__) 단일 파일로 되어 있는 경우 컴파일 예제 $ cython3 --embed -o ip.c ip.py # C 파일화 시키고 $ gcc -Os -I /usr/include/python3.4m -o ip ip.c -lpython3.4m -lpthread -lm -lutil -ldl # 로 컴파일 $ ldd ip linux-gate.so.1 => (0xb776e000) libpython3.4m.so.1.0 => /usr/lib/i386-linux-gnu/libpython3.4m.so.1.0 (0xb7380000) libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb71d2000) libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xb71b5000) libexpat.so.1 => /lib/i386-linux-gnu/libexpat.so.1 (0xb718c000) libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xb7172000) libdl.so.2 => /lib/i386-linux

CentOS6 에서 python3.3 설치 하기

아직 CentOS6 를 사용 하는 서버가 많고, 사용하는 python은 2.7에서 3.3, 3.4로 모두 넘어갔지만 centos 와 epel 레포지토리는 아직 python3를 지원하지 않고 있다.
# yum install centos-release-SCL # yum update # yum install python33-python python33-python-virtualenv # scl enable python33 bash # virtualenv -p /opt/rh/python33/root/usr/bin/python3.3 venv3 # . venv3/bin/activate (venv3)# pip -V pip 1.4.1 from /root/venv3/lib/python3.3/site-packages (python 3.3)

(legacy) Redhat Fedora core 1 - yum repository

/etc/yum.conf [main] cachedir=/var/cache/yum debuglevel=2 logfile=/var/log/yum.log pkgpolicy=newest distroverpkg=fedora-release tolerant=1 exactarch=1 [base] name=Fedora Core $releasever - $basearch - Base #baseurl=http://fedora.redhat.com/releases/fedora-core-$releasever baseurl=http://archive.fedoraproject.org/pub/archive/fedora/linux/core/$releasever/i386/os/ [updates-released] name=Fedora Core $releasever - $basearch - Released Updates #baseurl=http://fedora.redhat.com/updates/released/fedora-core-$releasever baseurl=http://archive.fedoraproject.org/pub/archive/fedora/linux/core/updates/

how to install - apache cassandra with openjdk in ubuntu 14.04

# openjdk-8-jdk sudo apt-get install software-properties-common sudo add-apt-repository ppa:openjdk-r/ppa update-alternatives --set java /usr/java/jdk1.8.0_60/bin/java # update-alternatives --all # cassandra sudo gpg --keyserver pgp.mit.edu --recv-keys 2B5C1B00 sudo gpg --export --armor 2B5C1B00 | sudo apt-key add - sudo gpg --keyserver pgp.mit.edu --recv-keys 0353B12C sudo gpg --export --armor 0353B12C | sudo apt-key add - sudo vi /etc/apt/sources.list.d/cassandra.sources.list deb http://www.apache.org/dist/cassandra/debian 21x main deb-src http://www.apache.org/dist/cassandra/debian 21x