OpenGrok설치기

요즘 한창 벼르던 OpenGrok을 조금씩 조금씩 설치해보고 있습니다. 국내 블로그에는 대부분 예전 버전의 설치방법과 기본 설치 디렉토리를 사용하는 방법으로 되어 있어서, 최신 1.3.7버전과는 일부 파일명, Configuration 설정 등의 차이로 인해서 바로 따라하기가 쉽지는 않습니다. 다행인지 불행인지, ubuntu snap설치도 가능하긴 한데, tomcat이 뜨는 것까지는 볼 수 있지만, opengrok의 설정에서 또 막히고, 어디 문서도 찾기 힘든터라 오히려 공식 opengrok사이트의 설치방법을 따라가고 있습니다. 현재까지의 경과는 일단
1. tomcat8, ctag를 설치하고,
2. opengrok소스를 받아서 tomcat에 deploy해서 webapp작동을 시킨 뒤,
3. opengrok의 indexing을 통해서 configuration을 다시 잡아 source/data를 설정하고,
4. 웹인터페이스로 결과를 확인하는게 된다 인데요..
현재는 2번에서 막혔습니다 –;;; 오히려 snap으로 설치된 것 보다 진행이 더딘데, tomcat의 webapp 쪽으로 permission설정 문제에서 멈춰 있습니다. 공식 설치가이드에서는, 그냥 잘 설정하라고만 되어 있네요…. 에휴..

이러는 와중에, 데스크탑에서 설치하기 힘들고, 잠자리에서도 해볼만한게 없나 싶어, 크롬북에서 설치시도를 해보고 있는데, 여기서는 또 난데 없는 apt 에러를 보네요. opengrok하고는 상관없지만, 최근의 업데이트 관련 발생한 문제 같은데, gpg키를 구글에서 갱신을 안해서 그렇다고 합니다. 해결 방법은 아래글에서처럼 key 갱신을 하는 방법이 있네요.
https://support.google.com/chromebook/thread/26548757?hl=en

아래의 에러가 보이면
Reading package lists… Done
W: GPG error: https://storage.googleapis.com/cros-packages/79 stretch Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 78BD65473CB3BD13
E: The repository ‘https://storage.googleapis.com/cros-packages/79 stretch Release’ is not signed.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

아래를 하면
jiwonuskim@penguin:~$ sudo apt-key adv –refresh-keys –keyserver keyserver.ubuntu.com

뭔가 많이 갱신하고

gpg: key A040830F7FAC5991: 20 duplicate signatures removed
gpg: key A040830F7FAC5991: 46 signatures not checked due to missing keys
gpg: key A040830F7FAC5991: “Google, Inc. Linux Package Signing Key ” 57 new signatures
gpg: Total number processed: 12
gpg: new subkeys: 1
gpg: new signatures: 125

문제없이 잘됩니다.
jiwonuskim@penguin:~$ sudo apt update
Ign:1 https://deb.debian.org/debian stretch InRelease
Hit:2 https://deb.debian.org/debian-security stretch/updates InRelease
Hit:3 https://deb.debian.org/debian stretch-backports InRelease
Hit:4 https://deb.debian.org/debian stretch Release
Ign:5 https://storage.googleapis.com/cros-packages/79 stretch InRelease
Get:6 https://storage.googleapis.com/cros-packages/79 stretch Release [3,114 B]
Get:8 https://storage.googleapis.com/cros-packages/79 stretch Release.gpg [819 B]
Hit:9 https://apt.llvm.org/stretch llvm-toolchain-stretch-7 InRelease
Get:10 https://storage.googleapis.com/cros-packages/79 stretch/main amd64 Packages [13.2 kB]
Fetched 17.1 kB in 3s (5,229 B/s)
Reading package lists… Done
Building dependency tree
Reading state information… Done
11 packages can be upgraded. Run ‘apt list –upgradable’ to see them.


게시됨

카테고리

작성자