安装MEAD时出错,没有这样的文件或目录:' prank.o'

时间:2014-11-09 18:37:05

标签: perl compiler-errors

我不太确定安装MEAD时出现此错误的原因。有谁知道如何解决这个问题?我需要安装MEAD用于学校作业,而且我对Perl没有多少经验。

Fixing perl directives:
  bin/default-classifier.pl
  bin/default-reranker.pl
  bin/driver.pl
  bin/extract-to-summary.pl
  bin/feature-scripts/Centroid.pl
  bin/feature-scripts/IsLongestSentence.pl
  bin/feature-scripts/Length.pl
  bin/feature-scripts/Position.pl
  bin/feature-scripts/QueryCosine.pl
  bin/feature-scripts/QueryCosineNoIDF.pl
  bin/feature-scripts/QueryWordOverlap.pl
  bin/feature-scripts/SimWithFirst.pl
  bin/feature-scripts/Skeleton.pl
  bin/identity-reranker.pl
  bin/leadbased-classifier.pl
  bin/make-CHIN-docsent.pl
  bin/mead.pl
  bin/meadeval.pl
  bin/novelty-reranker.pl
  bin/random-classifier.pl
  bin/read-idf.pl
  bin/relative-utility.pl
  bin/sentjudge-to-extract.pl
  bin/write-idf.pl

Fixing $MEADDIR in MEAD::MEAD


Building English IDF DBM:
Wd: 65300


Building Chinese IDF DBM:
Wd: 54700


******** Compiling LexRank ********
In file included from prank.cpp:10:
./prmain.h:80:8: error: unknown type name 'pthread_mutex_t'; did you mean
      'pthread_attr_t'?
extern pthread_mutex_t *mu; /* For general use */
       ^~~~~~~~~~~~~~~
       pthread_attr_t
/usr/include/sys/_types/_pthread_attr_t.h:30:34: note: 'pthread_attr_t' declared
      here
typedef __darwin_pthread_attr_t         pthread_attr_t;
                                        ^
1 error generated.
clang: error: no such file or directory: 'prank.o'
******** Compiling tf2gen ********
MEAD Installation successful.

1 个答案:

答案 0 :(得分:4)

#include <pthread.h>

之前,将prmain.h添加到一行上extern pthread_mutex_t *mu;