IshidaMotohiro / RMeCab

Interface to MeCab
29 stars 10 forks source link

fatal error on Mac #7

Closed yuanzhouIR closed 5 years ago

yuanzhouIR commented 5 years ago

Hello Professor Ishida, I successfully installed the package, but when I ran res <- RMeCabC("すもももももももものうち"), there appeared a dialog box showing that "R Session Aborted".

スクリーンショット 2019-04-04 20 42 48

My environment is as following.

sessionInfo() R version 3.5.3 (2019-03-11) Platform: x86_64-apple-darwin15.6.0 (64-bit) Running under: macOS Mojave 10.14.4

Matrix products: default BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib LAPACK: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRlapack.dylib

locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages: [1] stats graphics grDevices utils datasets methods base

other attached packages: [1] RMeCab_1.00 topicmodels_0.2-8 quanteda_1.4.3

loaded via a namespace (and not attached): [1] NLP_0.2-0 Rcpp_1.0.1 pillar_1.3.1 compiler_3.5.3
[5] plyr_1.8.4 tools_3.5.3 stopwords_0.9.0 lubridate_1.7.4
[9] tibble_2.1.1 gtable_0.3.0 lattice_0.20-38 pkgconfig_2.0.2
[13] rlang_0.3.3 Matrix_1.2-17 fastmatch_1.1-0 rstudioapi_0.10
[17] yaml_2.2.0 parallel_3.5.3 xml2_1.2.0 dplyr_0.8.0.1
[21] stringr_1.4.0 stats4_3.5.3 grid_3.5.3 tidyselect_0.2.5
[25] glue_1.3.1 data.table_1.12.0 R6_2.4.0 ggplot2_3.1.0
[29] purrr_0.3.2 spacyr_1.0 magrittr_1.5 scales_1.0.0
[33] modeltools_0.2-22 assertthat_0.2.1 colorspace_1.4-1 stringi_1.4.3
[37] lazyeval_0.2.2 RcppParallel_4.4.2 munsell_0.5.0 slam_0.1-45
[41] tm_0.7-6 crayon_1.3.4

Can you help me to find where the mistake is?

yuanzhouIR commented 5 years ago

I found what was wrong. I didn't install MeCab on my Mac before using RMeCab. I installed MeCab and the dictionary, and RMeCab worked.