In case you’re planning to create a brand new eBook on the Linux platform, you’ll want a strong editor. On Linux, there are just a few selections, however one which persistently will get tons of use is the Sigil eBook editor.

SPOILER ALERT: Scroll down and watch the video tutorial on the finish of this text.

Install Libraries

Constructing Sigil on Linux is feasible, although earlier than making an attempt to do it, you’ll want to put in the mandatory libraries and varied dependency recordsdata. Open up a terminal and observe the directions beneath. Needless to say dependencies are going to vary on every model of Linux, so it’s finest to consult with the official documentation for constructing software program in your Linux distribution.

Word: some Linux distributions have Sigil of their software program sources. Nevertheless, constructing the software program from supply offers you a extra updated model.

Ubuntu/Debian

sudo apt set up git python3-tk python3-pyqt5 python3-html5lib python3-regex python3-pillow python3-cssselect python3-cssutils python3-chardet python3-dev python3-pip python3-lxml python3-six build-essential libhunspell-dev libpcre3-dev libminizip-dev git cmake qtbase5-dev qttools5-dev qttools5-dev-tools libqt5webkit5-dev libqt5svg5-dev libqt5xmlpatterns5-dev

or

sudo apt-get git python3-tk python3-pyqt5 python3-html5lib python3-regex python3-pillow python3-cssselect python3-cssutils python3-chardet set up python3-dev python3-pip python3-lxml python3-six libhunspell-dev libpcre3-dev libminizip-dev build-essential git cmake qtbase5-dev qttools5-dev qttools5-dev-tools libqt5webkit5-dev libqt5svg5-dev libqt5xmlpatterns5-dev

Arch Linux

For Arch Linux person there’s a handy AUR package available that can robotically set up all dependencies, and construct Sigil. Level your favourite AUR helper at this package deal right here. Alternatively, set up the libraries manually:

sudo pacman -S base-devel git
git clone 
cd sigil-git
makepkg -si

Fedora

sudo dnf set up git python3-tkinter cmake qt5-qtbase-devel qt5-qtwebkit-devel qt5-qtsvg-devel qt5-qttools-devel qt5-qtxmlpatterns-devel zlib-devel hunspell-devel pcre-devel minizip-devel pkgconfig python3-devel desktop-file-utils libappstream-glib python3-pillow python3-cssselect python3-cssutils python3-html5lib python3-lxml python3-qt5 python3-regex python3-chardet python3-six hicolor-icon-theme

OpenSUSE

sudo zypper set up git boost-devel pkgconfig cmake dos2unix fdupes make hunspell-devel libqt5-qtbase-devel gcc-c++ libqt5-qtlocation-devel libstdc++-devel libxerces-c-devel libxml2-devel libxslt-devel make pcre-devel python3-devel unzip python3-html5lib python3-lxml python3-six python3-tk python3-Pillow python3-cssselect python3-cssutils

Generic Linux

The Sigil Github web page outlines intimately the dependencies a person must get the software program constructed. Sadly, it solely goes over what to put in on Ubuntu and Debian. Fortunately, it’s doable to take the Ubuntu package deal names, enter them into Pkgs.org and discover equivalents on many alternative distributions.

Construct Sigil

9k=

The first step in constructing the Sigil eBook editor is to tug the newest model of the supply code from it’s Github web page. In a terminal, use the git clone command.

git clone 

Subsequent, use the mkdir command and create a brand new, separate construct listing. Making a construct listing is essential as a result of it’s not a good suggestion to compile the code instantly within the supply code folder.

mkdir ~/sigil-build

Transfer the terminal into the brand new Sigil construct folder with CD.

cd ~/sigil-build

Name cmake and arrange the event setting.

cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Launch ~/Sigil

The above command will generate all the needed instruments to get Sigil working. If cmake finishes with out errors, transfer on to the compiling course of. Within the terminal, run the make command.

make

In case you have a high-end Linux PC with cores to spare, do that command as a substitute.

make -j4

Compiling applications from scratch takes a very long time. With regards to Sigil, there isn’t a exception; you’ll be ready a very long time for the construct to complete (particularly in case your Linux PC doesn’t have many cores). When the compiler is completed constructing the code, you’ll have the ability to set up Sigil in your pc with the next command:

sudo make set up

Uninstalling Sigil

Constructed Sigil, used it and notice you don’t need it in your Linux PC anymore? Sadly, for the reason that program was constructed by hand, there’s no simple “uninstall” button to click on.

No worries! Comply with the steps beneath to learn to clear it from the system.

First, open up a terminal and delete all of the traces of the supply code and constructed binaries.

sudo rm -rf ~/Sigil

sudo rm -rf ~/sigil-build

Subsequent, delete the applying shortcut in order that it now not seems in menus.

sudo rm /usr/native/share/purposes/sigil.desktop

Lastly, purge the remainder of the recordsdata out of your Linux PC:

sudo rm -rf /usr/native/lib/sigil/
sudo rm /usr/native/bin/sigil
sudo rm /usr/native/share/pixmaps/sigil.png
sudo rm -rf /usr/native/share/sigil/

Deleting all of those recordsdata ought to immediately make Sigil unavailable in your working system. If the Sigil app icon stays accessible within the software menu in your desktop setting, reboot your Linux PC. Resetting your PC will refresh the desktop. After logging again in, the icon shall be gone.



Source link

Share.
Leave A Reply

Exit mobile version