TALP-UPC / FreeLing

FreeLing project source code
Other
252 stars 96 forks source link

Freeling on Ubuntu 22.04 #123

Open pseudomonas opened 1 year ago

pseudomonas commented 1 year ago

Building v4.2 (no extra langs) from source. These were the packages that I needed to install as prerequisites in order to generate a makefile.

sudo apt install build-essential cmake
sudo apt install libboost-program-options1.74.0 libboost-program-options-dev libboost-regex1.74.0 libboost-regex-dev libboost-system1.74.0 libboost-system-dev libboost-thread1.74.0 libboost-thread-dev libicu-dev libicu70 zlib1g zlib1g-dev
sudo apt install libboost-filesystem-dev # this one seems to be necessary in addition to those listed on the install page

but it failed with

-- Installing: /home/redacted/.local/freeling/share/freeling/config/ru.cfg
-- Installing: /home/redacted/.local/freeling/share/freeling/config/sl.cfg
-- Installing: /home/redacted/.local/freeling/share/freeling/config/as.cfg
-- -- Creating ca/balear dictionary...
file "/home/redacted/bin/freeling/FreeLing-4.2/data/ca/balear/dictionary/header" not found
CMake Error at cmake_install.cmake:63 (message):
  multiword fusion failed with error: 255

make: *** [Makefile:100: install] Error 1

installing the focal .deb with dpkg gave:

Unpacking freeling (4.2) ...
dpkg: dependency problems prevent configuration of freeling:
 freeling depends on libboost-program-options1.71.0 (>= 1.71); however:
  Package libboost-program-options1.71.0 is not installed.
 freeling depends on libboost-regex1.71.0 (>= 1.71); however:
  Package libboost-regex1.71.0 is not installed.
 freeling depends on libboost-filesystem1.71.0 (>= 1.71); however:
  Package libboost-filesystem1.71.0 is not installed.
 freeling depends on libboost-system1.71.0 (>= 1.71); however:
  Package libboost-system1.71.0 is not installed.
 freeling depends on libboost-thread1.71.0 (>= 1.71); however:
  Package libboost-thread1.71.0 is not installed.
 freeling depends on libboost-iostreams1.71.0 (>= 1.71); however:
  Package libboost-iostreams1.71.0 is not installed.
 freeling depends on libicu66 (>= 66.1); however:
  Package libicu66 is not installed.

dpkg: error processing package freeling (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 freeling

(The packages were installed with the later versions, 1.74.0 in the case of the boost set; the 1.71.0 libraries don't seem to be readily available in Ubuntu 22.04)

pseudomonas commented 1 year ago

I see the former issue is https://github.com/TALP-UPC/FreeLing/issues/119 which seems to be still live with https://github.com/TALP-UPC/FreeLing/releases/download/4.2/FreeLing-src-4.2.tar.gz - I'm trying the workaround given there of installing the extra languages