Comments (5)
I got forward by adding
RUN apt-get install -y pkgconf
RUN autoreconf -i -f
Maybe install instructions could make it clear that this is required for building?
from omorfi.
I also had to add
RUN apt-get install -y g++
from omorfi.
Docker is a good idea, I think ubuntu has some package like build-essential
which has most basic deps for building most autoconf-based projects. I'll add fix the dependencies in the doc, there's few other updates before release that is also hopefully soon.
from omorfi.
Yes, build-essential
can be used instead of listing individual packages related to building software, and it indeed includes g++
as well. I just prefer to avoid downloading and installing packages which are unneeded.
Here is the Dockerfile
I ended up with and which does give me a usable omorfi environment:
FROM ubuntu
ENV AUTORECONF=false
ENV LANG=C.UTF-8
COPY . /omorfi
WORKDIR /omorfi
RUN apt-get update
RUN apt-get install -y wget
RUN wget https://apertium.projectjj.com/apt/install-release.sh -O - | bash
RUN apt-get install -y \
autoconf \
automake \
libtool \
g++ \
hfst \
libhfst-dev \
make \
pkgconf \
python3 \
python3-libhfst \
zip
RUN ./autogen.sh
RUN autoreconf -i -f
RUN src/bash/omorfi-download.bash
RUN ./configure --enable-segmenter --enable-labeled-segments --enable-lemmatiser
RUN make
RUN make install
ENV PYTHONPATH=/omorfi/src/python
I wonder if it would make sense to turn src/python/
into a proper Python package and install it, instead of tweaking PYTHONPATH
.
from omorfi.
Automake has limited python support and installs the omorfi package to $prefix/lib/pythonX.Y/site-packages/omorfi at least on my gentoo installation; if prefix is same as python's e.g. /usr it should just work.... when there's lots of API changes like recently thought the installation might be incomplete.
from omorfi.
Related Issues (20)
- Installation missing transducer files HOT 2
- Java interface compilation fails HOT 5
- Proper noun filtering is broken HOT 2
- Tokenisation FSA not being used in Python library on develop branch
- Centos7 omorfi compilation fails. HOT 1
- Centos7 compilation fails due to undefined reference HfstTranducer::lookup_fd HOT 4
- construct neutral fast interchange format
- Apparently missing test file HOT 1
- references HOT 1
- OOV analyses signal in-band
- Build fails HOT 1
- Models download file has wrong URL HOT 1
- Make homonym numbers optional? HOT 3
- Please add a plain-text LICENSE file HOT 1
- On Community Guidelines
- Genitive for eloonjäänyt is wrong?
- Ambigous install instructions HOT 2
- Can not run the omorfi-lookup.cc example HOT 1
- Js binding HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from omorfi.