Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem installing omorfi #13

Closed
dungkhuc opened this issue Sep 9, 2015 · 2 comments
Closed

Problem installing omorfi #13

dungkhuc opened this issue Sep 9, 2015 · 2 comments
Assignees

Comments

@dungkhuc
Copy link

dungkhuc commented Sep 9, 2015

Hi, I was following the instructions to install omorfi and encountered this problem when run 'make':

/usr/local/bin/hfst-lexc --Werror -o generated/omorfi-ftb3.lexc.hfst generated/omorfi-ftb3.lexc
/usr/local/bin/hfst-lexc: warning: Defaulting to OpenFst tropical type
generated/omorfi-ftb3.lexc:18.1: Syntax error in lexer (no valid token found at the point) [near: `b']
generated/omorfi-ftb3.lexc:18.1: syntax error, unexpected ERROR, expecting LEXICON_START or LEXICON_START_WRONG_CASE [near: `b']
/usr/local/bin/hfst-lexc: The file generated/omorfi-ftb3.lexc did not compile cleanly.
(if there are no error messages above, try -v or -d to get more info)
Makefile:1383: recipe for target 'generated/omorfi-ftb3.lexc.hfst' failed

I have all specified dependencies installed.

@flammie flammie self-assigned this Sep 10, 2015
@flammie
Copy link
Owner

flammie commented Sep 10, 2015

Interesting. Can you paste the contents of beginning of that file, say:

cat -n src/generated/omorfi-ftb3.lexc | head -n 25

Mine says:

    1  
     2  ! This automatically generated lexc data is originated from 
     3  ! omorfi database.
     4  ! Copyright (c) 2014 Omorfi contributors
     5  
     6  ! This program is free software: you can redistribute it and/or modify
     7  ! it under the terms of the GNU General Public License as published by
     8  ! the Free Software Foundation, version 3 of the License
     9  
    10  ! This program is distributed in the hope that it will be useful,
    11  ! but WITHOUT ANY WARRANTY; without even the implied warranty of
    12  ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    13  ! GNU General Public License for more details.
    14  
    15  ! You should have received a copy of the GNU General Public License
    16  ! along with this program.  If not, see <http://www.gnu.org/licenses/>.
    17  
    18  Multichar_Symbols
    19  !! FTB 3.1 multichar set:
    20  % CC
    21  % PrfPrc% Act
    22  % Opt
    23  % CS
    24  ←%<Del%>
    25  % Foc%_kA

@dungkhuc
Copy link
Author

I checked the file and it turned out that the problem was caused by my locale settings. I changed them to utf-8 and problem solved. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants