본문 바로가기

컴퓨터

[Linux] [스크랩] 네이버 웨일 redhat계열에 설치하기

웨일은 데비안 패키지로만 배포된다. 따라서 레드햇에 깔기 위해선 alien프로그램을 이용해 rpm패키지로 바꿔주어야 한다.

 

아래부터는 스크랩이다.

 

original post: https://forum.whale.naver.com/topic/31742/

------------------------------------------------------

 

Whale fails to provide any RPM packages. Very unfortunate. The latest .deb can be converted to RPM using alien but there are some issues. Here's how to solve those. I recommend listening to Rockit Girl Little Cat while you execute these commands but that is not required.

 

1) Extract the RPM and create a .spec file with alien.

alien -r -g naver-whale-stable_amd64.deb

 

2) Remove system folders that should not be in the .spec but are for some odd reason from the RPM .spec file

 

grep -v  -e '%dir "/"' \
 -e '%dir "/opt/"' \
 -e '%dir "/usr/"' \
 -e '%dir "/usr/bin/"' \
 -e '%dir "/usr/share/"' \
 -e '%dir "/etc/"' \
 -e '"/etc/cron.daily/naver-whale"' \
 -e '%dir "/usr/share/appdata/"' \
 -e '%dir "/usr/share/applications/"' \
 -e '%dir "/usr/share/doc/"' \
 -e '%dir "/usr/share/man/"' \
 -e '%dir "/usr/share/man/man1/"' \
 -e '%dir "/usr/share/gnome-control-center/"' \
 naver-whale-stable-2.8.105.22/naver-whale-stable-2.8.105.22-2.spec > /tmp/spec.tmp
 mv /tmp/spec.tmp naver-whale-stable-2.8.105.22/naver-whale-stable-2.8.105.22-2.spec

 

This command must be adjusted if it's used for future versions. You could also manually edit the spec file.

 

3) Make the libnelo2-multi.so library executable. RPM will claim it is required and missing if it's not marked as a executable, thus preventing the RPM from being installed.

 

chmod a+x naver-whale-stable-2.8.105.22/opt/naver/whale/libnelo2-multi.so


Now a RPM file can be built.

cd naver-whale-stable-2.8.105.22
rpmbuild --buildroot=${PWD}  -bb --target x86_64 'naver-whale-stable-2.8.105.22-2.spec'
cd ..

The new RPM can now be installed:

 

sudo dnf -y install naver-whale-stable-2.8.105.22-2.x86_64.rpm

 

And that's it, now you get to have WHALE browser on Fedora/CentOS/RHEL. 

 

Very unfortunate that NAVER does not provide any RPM themselves. It wouldn't be that hard for them to convert he .deb and provide that themselves. See my NAVER whale review in english for more tips.