본문 바로가기

Study/Linux5

How to solve Python error when use Mercurial abort: couldn't find mercurial libraries in [/usr/bin /usr/lib/python2.6 /usr/lib/python2.6/plat-linux2 /usr/lib/python2.6/lib-tk /usr/lib/python2.6/li...... Download here tar tvf mercurial-1.7.5.tar.gz cd mercurial-1.7.5 python setup.py install 2014. 12. 23.
Makefile 만들시 자동으로 파일이름에 rev 및 날짜 추가하기 Makefile 을 할때 생성되는 파일의 revision을 관리하고 싶은데 수동으로 파일명을 변경하기 보다는 자동으로 하는 것이 좋다. 이 예제는 .hg/cache/tags 파일의 젤 첫 단어가 revision 번호를 나타낼때 이를 읽어와서 파일이름에 추가 해주는 방법이다. ps2pdf main.ps $(shell date +%y%m%d)-ohlee-VoIP_Call_Capacity-r$(shell awk '{print $$1}' .hg/cache/tags).pdf 해당 내용은 "main.ps" 파일을 pdf로 변환할 경우 "121102-ohlee-VoIP_Call_Capacity-r19.pdf" 와 같은 형식으로 변경해준다. 만약 %y를 %Y로 변경한다면 "20121102-ohlee-VoIP_Call_.. 2012. 11. 2.
Vi에서 오타 체크 하는 방법 ~/.vimrc 에 다음과 같은 내용을 추가하자 " version 7+ commandsif version >= 700 " spelling is configured yet disabled by default setlocal nospell " set a spell file where new words are added with 'zg' set spellfile=~/.vim.spell.add nnoremap :setlocal spell spelllang=en_us nnoremap :setlocal nospellendif F7을 누르면 spell check 이 사작되고 F8를 누르면 spellcheck이 꺼진다.아래는 spell의 자주 사용되는 명령어이니 사용하면 편리하다.Here are some of the .. 2012. 10. 24.
Unbuntu xpdf 버그 수정 I have instead compiled xpdf 3.03 (not 3.02) from source as follows: Remove all xpdf packages. sudo apt-get install lesstif2-devwget ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.03.tar.gz tar xzf xpdf-3.03.tar.gz cd xpdf-3.03 Dowload the file to xpdf-3.03 folder patch < xpdf3.03Viewer.patch ./configure --with-freetype2-library=/usr/lib/x86_64-linux-gnu/ --with-freetype2-includes=/usr/include/freetype2 .. 2012. 10. 19.
반응형