Ubuntu에 IDL8.0을 깔아서 쓰고 있는데 New graphics를 사용하려고 할 때 마다 에러가 발생했다.

IDL> p = plot(/test)

% Loaded DLM: XML.
Segmentation fault 

몇 번 문제를 해결하려고 찾아봤었는데 잘 안되서 포기하고 direct graphics로 그림을 그리다가 그림을 좀 더 예쁘게 그리고 싶어서 다시 열심히(?) 찾아봤더니 너무 쉽게 해결방법을 찾았다.

IDL을 공급하는 본사(여기저기 팔려다녀서 지금은  Exelis VIS로 넘어갔다.)에서 제공하는 해결책이 있었는데 예전에는 왜 유심히 안봤나 모르겠다.

http://www.exelisvis.com/language/en-US/Support/HelpArticleDetail/articleid/4576.aspx?dnnprintmode=true&mid=6229&SkinSrc=%5BG%5DSkins%2F_default%2FNo+Skin&ContainerSrc=%5BG%5DContainers%2F_default%2FNo+Container

한글요약
1) http://rpm.pbone.net/index.php3/stat/2/simple/2에 가서 RedHat EL 4 옵션을 체크하고 libstdc++.so.6.0.3를 찾는다.

2) libstdc++-3.4.6-3.1.x86_64.rpm나 libstdc++-3.4.6-3.1.i386.rpm를 버전에 맞게 다운로드한다.
3) 다운로드한 폴더에서 오른쪽 클릭해서 "Extract Here"를 선택한다.
4) 안에 있는 두개의 파일 libstdc++.so, libstdc++.so.6.0.3을 버전에 맞게 .../idl80/bin/bin.linux.x86나 .../idl80/bin/bin.linux.x86_64에 옮긴다.


위의 주소에서 시키는대로 하면 되는데 결국 libstdc++.so.6의 호환성 문제인 듯 하다. 첨에 문제를 해결하려고 찾았을 때는 단순히 저 라이브러리가 최신이 아니거나 없어서 그런줄 알고 최신 라이브러리를 설치 했는데도 안되길래 포기하고 있었던 건데 저기서 지정해주는 녀석을 찾아다가 깔았더니 그냥 해결되 버렸다. debian계열 linux에서 나타나는 문제인 듯 하다.

어쨌든 이제 연구만 열심히 하면 되는데... 응? 
고흥에서 표박사님께 사사받은 vim-latexsuite.

기본적인 설정만 했지만 vi로 TeX작업을 하는데 상당히 강력한 도구가 될 것 같다.

몇 가지 필요한 기본 설정

1. vim-addons 설정 확인
vim-addons status
2. vim-addons에 latexsuite 추가
sudo vim-addons -w install latex-suite
and/or
vim-addons install latex-suite 
sudo로 실행하면 system wide하게 적용된다.

3. 불필요한 에러 메세지 제거
Error detected while processing /var/lib/vim/addons/plugin/remoteOpen.vim:
line   37:
E174: Command already exists: add ! to replace it
line   38:
E174: Command already exists: add ! to replace it
이런 에러가 발생하는 경우가 있는데 저 파일을 열어보면 37, 38째 줄에있는
com -nargs=1 RemoteOpen :call RemoteOpen('<args>')
com -nargs=? RemoteInsert :call RemoteInsert('<args>')  
두 문장을 주석처리 (") 해준다.

4. recommended setting
Make sure that you create a few necessary settings in your ~/.vimrc.
" REQUIRED. This makes vim invoke Latex-Suite when you open a tex file.
filetype plugin on

" IMPORTANT: win32 users will need to have 'shellslash' set so that latex
" can be called correctly.
set shellslash

" IMPORTANT: grep will sometimes skip displaying the file name if you
" search in a singe file. This will confuse Latex-Suite. Set your grep
" program to always generate a file-name.
set grepprg=grep\ -nH\ $*

" OPTIONAL: This enables automatic indentation as you type.
filetype indent on

" OPTIONAL: Starting with Vim 7, the filetype of empty .tex files defaults to
" 'plaintex' instead of 'tex', which results in vim-latex not being loaded.
" The following changes the default filetype back to 'tex':
let g:tex_flavor='latex'
In addition, the following settings could go in your ~/.vim/ftplugin/tex.vim file:

" this is mostly a matter of taste. but LaTeX looks good with just a bit
" of indentation.
set sw=2
" TIP: if you write your \label's as \label{fig:something}, then if you
" type in \ref{fig: and press <C-n> you will automatically cycle through
" all the figure labels. Very useful!
set iskeyword+=:

참고링크
http://vim-latex.sourceforge.net/
http://michaelgoerz.net/refcards/#latexsuite

데스크탑 하드가 맛가는 바람에 노트북 셋업을 위해서 간만에 인터넷의 바다를 헤엄쳤다.

1. monitor setting 확인
$xrandr --prop
 
2. external monitor를 dual로 쓰기
$xrandr --output VGA --right-of LVDS --auto

이렇게 간단한 것을 아예 모니터 못찾는 애들꺼 보면서 괜히 삽질했네.

미래를 위한 링크
http://www.chronox.de/x40_linux/linux_on_x40.html

삽질은 끝이 없다.
 

+ Recent posts