hamonikr / nimf

다국어 입력기 프레임워크 Nimf is a lightweight, fast and extensible input method framework
GNU Lesser General Public License v3.0
143 stars 24 forks source link

우분투 20.10 (groovy) deb 패키지 지원 요청 #27

Closed awesometic closed 3 years ago

awesometic commented 3 years ago

안녕하세요,

nimf 를 유지보수해주셔서 감사합니다. 제가 리눅스를 Kubuntu를 주로 쓰는데, 20.04 (focal)까지는 설치가 잘 되는데 20.10 (groovy)를 위한 패키지는 아직 없더라구요

어쩔 수 없이 로컬에서 deb 패키지 빌드 후 사용 중인데 동작은 잘 되는 것 같습니다.

Screenshot_20201019_200505

groovy 용 패키지도 지원해주세요 ㅎㅎ

mxa commented 3 years ago

Did you compile it locally to make it run on 20.10?

awesometic commented 3 years ago

Did you compile it locally to make it run on 20.10?

Yes, I did. Cloned this repository and followed the guide on this Wiki. https://github.com/hamonikr/nimf/wiki/HamoniKR-build

mxa commented 3 years ago

Yes, I did. Cloned this repository and followed the guide on this Wiki. https://github.com/hamonikr/nimf/wiki/HamoniKR-build

I'm getting errors:

Package libqt4-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libqt4-dev' has no installation candidate

and

dpkg-checkbuilddeps: error: Unmet build dependencies: intltool (>= 0.50.1) qtbase5-dev qtbase5-private-dev libappindicator3-dev librsvg2-bin libhangul-dev libanthy-dev anthy librime-dev (>= 1.2.9) libxklavier-dev libm17n-dev (>= 1.7.0) m17n-db (>= 1.7.0) gtk-doc-tools (>= 1.26)
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
awesometic commented 3 years ago

I'm getting errors:

Package libqt4-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libqt4-dev' has no installation candidate

AFAIK that libqt4-dev package is deprecated in Ubuntu 20.10. I ignored that package and could build nimf packages using debuild -b -us -uc.

chaeya commented 3 years ago

@awesometic

Ubuntu 20.10 groovy 에서 설치할 수 있는 저장소를 추가하고 새로 업데이트 했습니다. 테스트해 보시고 버그가 있으시면 리포트 해주세요 ^^

Install nimf on Ubuntu 20.10 groovy


curl -sL https://pkg.hamonikr.org/add-hamonikr.apt | sudo -E bash -

sudo apt install nimf nimf-libhangul

# 만약 일본어, 중국어 등 다른언어를 사용하고 싶은경우에는 다음과 같이 추가 패키지를 설치해줍니다.
# Install additional packages as follows if you want to use other languages(Japanese, Chinese, etc.)
sudo apt install libnimf1 nimf nimf-anthy nimf-dev nimf-libhangul nimf-m17n nimf-rime

im-config -n nimf
``

즐거운 하루 보내세요
chaeya commented 3 years ago

@mxa Sorry for late check. I just updated today below document. Try the build as per the documentation below and let me know if it doesn't work. https://github.com/hamonikr/nimf/wiki/HamoniKR-build

mxa commented 3 years ago

Where do I go from there? After that should I follow the INSTALL document? If I do so, I'm getting errors on make

 /bin/mkdir -p '/usr/local/lib/nimf/modules'
 /bin/bash ../../../libtool   --mode=install /usr/bin/install -c   libnimf-libhangul.la '/usr/local/lib/nimf/modules'
libtool:   error: error: cannot install 'libnimf-libhangul.la' to a directory not ending in /usr/lib/x86_64-linux-gnu/nimf/modules
make[4]: *** [Makefile:480: install-moduleLTLIBRARIES] Error 1
make[4]: Leaving directory '/home/max/Code/nimf/modules/engines/nimf-libhangul'
make[3]: *** [Makefile:686: install-am] Error 2
make[3]: Leaving directory '/home/max/Code/nimf/modules/engines/nimf-libhangul'
make[2]: *** [Makefile:453: install-recursive] Error 1
make[2]: Leaving directory '/home/max/Code/nimf/modules/engines'
make[1]: *** [Makefile:448: install-recursive] Error 1
make[1]: Leaving directory '/home/max/Code/nimf/modules'
make: *** [Makefile:511: install-recursive] Error 1
mxa commented 3 years ago

@awesometic sudo apt install nimf nimf-libhangul

If I run that I'm getting

sudo apt install nimf nimf-libhangul
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 nimf : Depends: qtbase-abi-5-12-8 but it is not installable
E: Unable to correct problems, you have held broken packages.
chaeya commented 3 years ago

@mxa Sorry for inconvenience. I tried rebuild on Ubuntu 20.10 Clean install with VirtualBox. But I couldn't found any error.

Could you check below link? https://github.com/hamonikr/nimf/wiki/Build-on-Ubuntu-20.10-groovy

mxa commented 3 years ago

Thank you for your help.

sudo dpkg -i nimf_*.deb nimf-libhangul_*.deb
[sudo] password for max: 
Selecting previously unselected package nimf.
(Reading database ... 715180 files and directories currently installed.)
Preparing to unpack nimf_1.2.0hamonikr30.1_amd64.deb ...
Unpacking nimf (1.2.0hamonikr30.1) ...
Selecting previously unselected package nimf-libhangul.
Preparing to unpack nimf-libhangul_1.2.0hamonikr30.1_amd64.deb ...
Unpacking nimf-libhangul (1.2.0hamonikr30.1) ...
dpkg: dependency problems prevent configuration of nimf:
 nimf depends on libnimf1 (= 1.2.0hamonikr30.1); however:
  Package libnimf1 is not installed.

dpkg: error processing package nimf (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of nimf-libhangul:
 nimf-libhangul depends on libnimf1; however:
  Package libnimf1 is not installed.
 nimf-libhangul depends on nimf (= 1.2.0hamonikr30.1); however:
  Package nimf is not configured yet.

dpkg: error processing package nimf-libhangul (--install):
 dependency problems - leaving unconfigured
Processing triggers for libgtk2.0-0:amd64 (2.24.32-4ubuntu4) ...
Cannot load module /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-nimf-gtk2.so: libnimf.so.1: cannot open shared object file: No such file or directory
/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-nimf-gtk2.so does not export GTK+ IM module API: libnimf.so.1: cannot open shared object file: No such file or directory
Processing triggers for libgtk-3-0:amd64 (3.24.23-1ubuntu1) ...
Cannot load module /usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules/im-nimf-gtk3.so: libnimf.so.1: cannot open shared object file: No such file or directory
/usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules/im-nimf-gtk3.so does not export GTK+ IM module API: libnimf.so.1: cannot open shared object file: No such file or directory
Processing triggers for desktop-file-utils (0.24-1ubuntu4) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for libglib2.0-0:amd64 (2.66.1-2) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for man-db (2.9.3-2) ...
Errors were encountered while processing:
 nimf
 nimf-libhangul
chaeya commented 3 years ago

@mxa It seems your environment missed Korean keyboard input library. try install libhangul1 package before nimf install. sudo apt install libhangul1 libhangul-data

chaeya commented 3 years ago

@mxa I recommend below method

curl -sL https://pkg.hamonikr.org/add-hamonikr.apt | sudo -E bash -
sudo apt install -y nimf nimf-libhangul libnimf1 nimf nimf-dev nimf-libhangul
im-config -n nimf
mxa commented 3 years ago
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libnimf1 is already the newest version (1.2.0hamonikr30.1).
libnimf1 set to manually installed.
nimf-libhangul is already the newest version (1.2.0hamonikr30.1).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 nimf : Depends: qtbase-abi-5-12-8 but it is not installable
E: Unable to correct problems, you have held broken packages.

If I search for qtbase-abi- in my package manager, I only find qtbase-abi-5-9-5-dummy Dummy package for Debian Buster from the 1.2.0hamonikr30.1 sources

awesometic commented 3 years ago

@chaeya , 업데이트 감사합니다 ㅎㅎ

@mxa , How about this command to satisfy the dependencies? sudo apt install libglib2.0-dev intltool libgtk-3-dev libgtk2.0-dev libappindicator3-dev librsvg2-bin libhangul-dev libanthy-dev anthy librime-dev libxkbcommon-dev libwayland-dev wayland-protocols libxklavier-dev libm17n-dev m17n-db gtk-doc-tools devscripts build-essential debhelper qtbase5-dev qtbase5-private-dev

I removed "qt" things and added those two packages seen at the tail. This worked today on my new Ubuntu 20.10 system. Hope this helps. edit) Sorry, this is already mentioned by @chaeya , https://github.com/hamonikr/nimf/wiki/Build-on-Ubuntu-20.10-groovy Couldn't notice that. :)

BTW, now we can use the already-packed packages from the official repository.

mxa commented 3 years ago

ok. But:

rm nimf -r
rm: remove write-protected regular file 'nimf/.git/objects/pack/pack-0d93b2c9ac3530f00f169efd0468f794d60b7d88.idx'? y
rm: remove write-protected regular file 'nimf/.git/objects/pack/pack-0d93b2c9ac3530f00f169efd0468f794d60b7d88.pack'? y
rm libnimf1*
rm qtbase-abi-5-9-5-dummy_1.2.0hamonikr30.1_amd64.deb
sudo apt install nimf
[sudo] password for max: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 nimf : Depends: qtbase-abi-5-12-8 but it is not installable
E: Unable to correct problems, you have held broken packages.
mxa commented 3 years ago

I think I fixed it by removing https://apt.hamonikr.org/ jin main upstream from the repositories.

chaeya commented 3 years ago

@mxa Correct. nimf apt repository for Ubuntu 20.10 is https://pkg.hamonikr.org/ . that address is for ubuntu 18.04. have a nice day.