View Single Post
Old 08-22-2016, 05:51 PM   #5
darkbreath
Enthusiast
darkbreath began at the beginning.
 
Posts: 27
Karma: 10
Join Date: Apr 2016
Device: none
Quote:
Originally Posted by Toxaris
Could this be related to the known error in the libxml2 library? You would need a version lower than 2.9.3 (where the error was introduced) and copy that to /usr/local/libs/sigil.

See post here.

I don't know if it is related, but it might be.
Do the instructions for building on Linux work on a version lower than 2.9.3? If they do, and if this is the problem, I guess I'll have no choice but to find the source for a very early version and compile it (assuming Sigil was licensed under the GPLv3 back then), unless someone can point out an earlier version of Ubuntu or Mint that had such an early version in its repositories. If Sigil 0.9.5 isn't affected, it might be easier to just go with the official repository version until the problem is fixed.

I'm not entirely sure I have this problem though. The bug report mentions that it's caused by the insertion of an image into an .htm file, but I never even got to that stage. I only tried to open Sigil and I got both errors in my original post.

Quote:
Originally Posted by KevinH
This error means you have not properly built Sigil. Something about the Internal Python library is broken. My guess is you are missing the python 3.4 or 3.5 python libraries needed or have not properly instalked your build. I build on Linux Mint 18 now and have no issues if I CLOSELY follow the Building on Linux guide provided in the docs folder.

KevinH
Like you, I also closely followed the guide. I listed all the packages I've installed that were asked for in the guide below under my response to DiapDealer. Am I missing something?

Also, I don't know if this is important, but I'm using Mate rather than Cinnamon.

Quote:
Originally Posted by DiapDealer
If you didn't get any errors when compiling Sigil, there are only two things I can think of that would result in that particular error after installation:

1) you forgot to install the six and/or lxml python modules.
2) you mistakenly enabled the PKG_SYSTEM_PYTHON option when doing the initial cmake config.

Number one is more likely. Look at the BuildingOnLinux instructions and install the extra Python modules it mentions. That should make the error go away. Number two would require reconfiguring, recompiling, and reinstalling.

Also remember that on Mint 18, you can install Sigil from the regular repositories.
I followed the guide to the letter, and I've also done it several times by now on various Ubuntu installations. In fact, here are the packages I had installed before compiling:

python3
python3.5
python3.5-dev
python3-dev
There is no libpython3, but libpython3.5 is installed
libpython3-dev
libpython3.5-dev
There is no python3.5-pip, but python3-pip is installed
There is no python3.5-tk, but python3-tk is installed
There is no python3.5-lxml, but python3-lxml is installed
There is no python3.5-six, but python3-six is installed

I also double checked that all the python modules are all installed. They are. I get "requirement already satisfied" when I try to install the modules again. In the case of the html5lib module, I actually get 4 "requirement already satisfied" messages.

About the PKG_SYSTEM_PYTHON. this wasn't even in the Linux build instructions, but I included my cmake command below so you can see for yourself whether I did anything wrong.

And thanks for the reminder on the official repository version of Sigil. I will keep it around as a last resort, but I'm hoping to fix this problem first because if I don't, I'm just basically saving the problem to deal with at a later date should an important new version be released in the future. I usually only upgrade to LTS versions also, so if I don't get this to compile I won't be able to use a newer version than 0.9.5 for years.

So what else could be wrong? Well, DiapDealer's 2 possible causes of my problem were conditioned on the premise that I didn't get any errors when compiling. As a matter of fact, I might have gotten some errors, but I didn't think they were important:

Here's the cmake command I used, as well as all the terminal output:
Code:
$ cmake -G "Unix Makefiles" -DCMAKE_PREFIX_PATH=/opt/Qt5.5.1/5.5/gcc_64/lib/cmake -DCMAKE_BUILD_TYPE=Release ../sigil-0.9.6-src
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.5.2", minimum required is "3.4") 
-- Looking for versions: 3.4;3.5
-- Looking for python version '3.4' by checking executables: python;python3;python3.4.
-- Found executable /usr/bin/python with UNsuitable version 2.7.12
-- Found executable /usr/bin/python3 with UNsuitable version 3.5.2
-- Looking for python version '3.5' by checking executables: python;python3;python3.5.
-- Found executable /usr/bin/python with UNsuitable version 2.7.12
-- Found executable /usr/bin/python3 with suitable version 3.5.2
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.5m.so (found suitable version "3.5.2", minimum required is "3.4") 
-- Using Bundled ZLIB
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of off64_t
-- Check size of off64_t - failed
-- Looking for fseeko
-- Looking for fseeko - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Using Bundled MiniZip
-- Using Bundled Hunspell
-- Using Bundled PCRE
-- Looking for dirent.h
-- Looking for dirent.h - found
-- Looking for inttypes.h
-- Looking for inttypes.h - found
-- Looking for sys/stat.h
-- Looking for sys/stat.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for windows.h
-- Looking for windows.h - not found
-- Looking for C++ include type_traits.h
-- Looking for C++ include type_traits.h - not found
-- Looking for C++ include bits/type_traits.h
-- Looking for C++ include bits/type_traits.h - not found
-- Looking for bcopy
-- Looking for bcopy - found
-- Looking for memmove
-- Looking for memmove - found
-- Looking for strerror
-- Looking for strerror - found
-- Looking for strtoll
-- Looking for strtoll - found
-- Looking for strtoq
-- Looking for strtoq - found
-- Looking for _strtoi64
-- Looking for _strtoi64 - not found
-- Check size of long long
-- Check size of long long - done
-- Check size of unsigned long long
-- Check size of unsigned long long - done
-- Performing Test COMPILER_SUPPORTS_CXX11
-- Performing Test COMPILER_SUPPORTS_CXX11 - Success
-- Performing Test COMPILER_SUPPORTS_CXX0X
-- Performing Test COMPILER_SUPPORTS_CXX0X - Success
-- Configuring done
-- Generating done
In particular, these lines might have been errors:
Code:
-- Found executable /usr/bin/python with UNsuitable version 2.7.12
-- Found executable /usr/bin/python3 with UNsuitable version 3.5.2
-- Found executable /usr/bin/python with UNsuitable version 2.7.12
-- Found executable /usr/bin/python3 with suitable version 3.5.2
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.5m.so (found suitable version "3.5.2", minimum required is "3.4")
-- Check size of off64_t
-- Check size of off64_t - failed
If these are errors, how should I proceed given the packages listed above that I've already verified as installed?

Last edited by darkbreath; 08-22-2016 at 05:54 PM.
darkbreath is offline   Reply With Quote