LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-11-2017, 07:13 PM   #1
feixiangdezhu
LQ Newbie
 
Registered: Jan 2017
Posts: 10

Rep: Reputation: Disabled
Question How to install fcitx-rime


I use slackware 14.2 and fcitx.I want to install rime so I chose fcitx-rime.Yes,I know https://github.com/fcitx/fcitx-rime,but I still don't know how to install fcitx-rime.
 
Old 02-11-2017, 09:30 PM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
It is cmake based, so typically you'll download the source (either clone the repo or download and extract the latest release tarball), then go into the source, make a build directory, then run cmake .. (include the two dots in the command). There's extra options you can pass cmake, but that's a generic start. Once that's done, then you can just run make and make install, however, that won't give you a Slackware package, which means it could be more difficult to manage and/or uninstall.

Code:
wget https://github.com/fcitx/fcitx-rime/archive/0.3.1/fcitx-rime-0.3.1.tar.gz
tar xvf fcitx-rime-0.3.1.tar.gz
cd fcitx-rime
mkdir build
cd build
cmake ..
make
make install
If you are semi-familiar with bash, you could probably take the SBo cmake template and adjust it to this program. This would create a Slackware package you could then install using installpkg. You could then submit this to SBo and become the maintainer of the package so others could benefit from your work

However, looking at their readme shows that they have a dependency of librime, which is also not available on SBo. That uses just regular make and the install instructions are listed in the readme. If you were to make a SlackBuild for fcitx-rime and want to submit it to SBo, you'd also need to make one for librime, as SBo requires all dependencies to be available on SBo. librime has several dependencies that are available on SBo: leveldb, boost, glog, opencc, and yaml-cpp. But it also requires marisa, which is not available on SBo.

Overall, it seems it will be quite the project, but certainly not impossible. You'd need to manually build marisa, librime, and fcitx-rime, but you could install leveldb, boost, glog, opencc, and yaml-cpp from SBo using whatever tool you prefer. If you plan on pursuing this, if possible, I'd highly recommend trying to create SlackBuilds for those 3 programs. This would help you immensely any time you need to reinstall these packages (new/different computer, wipe and reinstall, upgrade to the next version of Slackware, etc), plus it would be a great thing to provide to the community so others can benefit from your work as you've undoubtedly already benefited from others work
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Why can't install fcitx on my oracle linux7? luofeiyu Linux - Desktop 1 08-23-2015 08:24 AM
fcitx problem stanleychao Linux - Software 1 04-30-2013 07:21 AM
Fcitx: How does one configure Fcitx? The input and control panels too small to read. harryhaller Slackware 11 06-09-2008 12:37 AM
fcitx Maurice Arthur Mandriva 6 10-21-2004 07:55 PM
fcitx problems hobylinux Linux - Software 13 10-01-2004 08:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration