MeCab.jl icon indicating copy to clipboard operation
MeCab.jl copied to clipboard

Error building MeCab (Julia 1.2)

Open Arararararagi opened this issue 5 years ago • 0 comments

おはこんばんちは!

I was very pleased to find out there was a MeCab package for Julia, however I don't seem to be able to make it work with Julia 1.2. Haven't tested other versions of Julia. More details below. It's literally my first day using Julia, so I'm afraid I can't help much.

[Arararararagi@Arararararagi ~]$ julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.2.0 (2019-08-20)
 _/ |\__'_|_|_|\__'_|  |  
|__/                   |

julia> using Pkg

julia> Pkg.add("MeCab")
  Updating registry at `~/.julia/registries/General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
 Resolving package versions...
  Updating `~/.julia/environments/v1.2/Project.toml`
 [no changes]
  Updating `~/.julia/environments/v1.2/Manifest.toml`
 [no changes]

julia> using MeCab
[ Info: Precompiling MeCab [28a8edfd-32bd-5648-83f9-9b597c29a4fc]
ERROR: LoadError: MeCab not properly installed. Please run Pkg.build("MeCab")
Stacktrace:
 [1] top-level scope at /home/Arararararagi/.julia/packages/MeCab/c9nU4/src/MeCab.jl:9
 [2] top-level scope at none:2
in expression starting at /home/Arararararagi/.julia/packages/MeCab/c9nU4/src/MeCab.jl:6
ERROR: Failed to precompile MeCab [28a8edfd-32bd-5648-83f9-9b597c29a4fc] to /home/Arararararagi/.julia/compiled/v1.2/MeCab/hcYKl.ji.

julia> Pkg.build("MeCab")
  Building MeCab → `~/.julia/packages/MeCab/c9nU4/deps/build.log`
┌ Error: Error building `MeCab`: 
│ ERROR: LoadError: ArgumentError: Package Compat not found in current path:
│ - Run `import Pkg; Pkg.add("Compat")` to install the Compat package.
│ 
│ Stacktrace:
│  [1] include(::String) at ./client.jl:431
│  [2] top-level scope at none:5
│ in expression starting at /home/Arararararagi/.julia/packages/MeCab/c9nU4/deps/build.jl:2
└ @ Pkg.Operations /build/julia/src/julia-1.2.0/usr/share/julia/stdlib/v1.2/Pkg/src/backwards_compatible_isolation.jl:647
false

julia> import Pkg; Pkg.add("Compat")
 Resolving package versions...
  Updating `~/.julia/environments/v1.2/Project.toml`
 [no changes]
  Updating `~/.julia/environments/v1.2/Manifest.toml`
 [no changes]

julia> Pkg.build("MeCab")
  Building MeCab → `~/.julia/packages/MeCab/c9nU4/deps/build.log`
┌ Error: Error building `MeCab`: 
│ ERROR: LoadError: ArgumentError: Package Compat not found in current path:
│ - Run `import Pkg; Pkg.add("Compat")` to install the Compat package.
│ 
│ Stacktrace:
│  [1] include(::String) at ./client.jl:431
│  [2] top-level scope at none:5
│ in expression starting at /home/Arararararagi/.julia/packages/MeCab/c9nU4/deps/build.jl:2
└ @ Pkg.Operations /build/julia/src/julia-1.2.0/usr/share/julia/stdlib/v1.2/Pkg/src/backwards_compatible_isolation.jl:647
false

Arararararagi avatar Oct 05 '19 22:10 Arararararagi