Apache 서버에서 Perl 돌리기..
글쓴이: kid1402 / 작성시간: 화, 2010/10/19 - 12:22오전
Text Mine 이라는 프로그램? 어플? 을 써서 해야하는 과제가 있습니다
수업시간에 하던 알고리즘을 직접 짜는 내용이라 자체는 어려울게 없는데
설치 및 실행에서 막히네요..
우선 제가 필요한 정보는
1. Apache 서버에서 *.pl (perl 코드)를 실행하는 방법
-> Text Mine 홈페이지에 나와있는 방법대로 아파치 실행후에 index 펄 파일을 실행했는데, 코드가 실행되는게 아니라 그냥 텍스트 파일로 취급되서 출력만되네요.. ㅠㅠ 왜이러죠
strawberry perl 최신버전 설치했고 Text Mine 을 위해 필요한 mysql 등을 다 설치했는데 ㅠㅠ..
사실 펄을 한번도 안써봐서 너무 생소해서 잘 모르겠기도 하네요;
Text Mine은 http://textmine.sourceforge.net 에서 받았어요
2. 자바에서 perl 코드를 이용하는게 가능한가요?
펄로 만든 펑션, 룰 등을 갖고와서 자바에서 사용할 수 있나요? 왠지 있을거 같긴 하지만 확실치가 않네요 ㅠㅠ
Forums:
apache에서 CGI
apache에서 CGI 설정하는 방법은
http://nan1004au.tistory.com/tag/cgi%20apache%20perl%20/etc/apache2/site-aviable/default
자바에서 Perl 부르는건 embed, inline등을 지원하는 방법들이 있긴 하지만
버젼간 호환성 문제등 유지보수의 어려움과 복잡성만 가중시킬 확률이 큽니다.
따라서 언어독립적인 xml-rpc 같은 걸 사용하시면 됩니다.
http://www.javaworld.com/javaworld/jw-10-2004/jw-1011-xmlrpc.html
댓글 달기