【问题标题】:Feodra 22 - Want to build CouchDBFedora 22 - 想要构建 CouchDB
【发布时间】:2016-10-17 19:45:37
【问题描述】:

我想在 Fedora22 上构建 CouchDB1.6.1。 在 ./configure 上没有错误,我收到消息“Run make && make install”。 不管我跑什么,总是会出错。

这是make 的错误。 有谁知道该怎么做?

`[Tatjana@localhost apache-couchdb-1.6.1]$ make
    make  all-recursive
    make[1]: Entering directory '/home/Tatjana/apache-couchdb-1.6.1'
Making all in bin
make[2]: Entering directory '/home/Tatjana/apache-couchdb-1.6.1/bin'
make  all-am
make[3]: Entering directory '/home/Tatjana/apache-couchdb-1.6.1/bin'
ln -s -f "/home/Tatjana/apache-couchdb-1.6.1/src/couchdb/priv/couchjs" "couchjs_dev"
make[3]: Leaving directory '/home/Tatjana/apache-couchdb-1.6.1/bin'
make[2]: Leaving directory '/home/Tatjana/apache-couchdb-1.6.1/bin'
Making all in etc
make[2]: Entering directory '/home/Tatjana/apache-couchdb-1.6.1/etc'
Making all in couchdb
make[3]: Entering directory '/home/Tatjana/apache-couchdb-1.6.1/etc/couchdb'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/Tatjana/apache-couchdb-1.6.1/etc/couchdb'
Making all in default
make[3]: Entering directory '/home/Tatjana/apache-couchdb-1.6.1/etc/default'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/Tatjana/apache-couchdb-1.6.1/etc/default'
Making all in init
make[3]: Entering directory '/home/Tatjana/apache-couchdb-1.6.1/etc/init'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/Tatjana/apache-couchdb-1.6.1/etc/init'
Making all in launchd
make[3]: Entering directory '/home/Tatjana/apache-couchdb-1.6.1/etc/launchd'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/Tatjana/apache-couchdb-1.6.1/etc/launchd'
Making all in logrotate.d
make[3]: Entering directory '/home/Tatjana/apache-couchdb-1.6.1/etc/logrotate.d'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/Tatjana/apache-couchdb-1.6.1/etc/logrotate.d'
Making all in windows
make[3]: Entering directory '/home/Tatjana/apache-couchdb-1.6.1/etc/windows'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/Tatjana/apache-couchdb-1.6.1/etc/windows'
make[3]: Entering directory '/home/Tatjana/apache-couchdb-1.6.1/etc'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/Tatjana/apache-couchdb-1.6.1/etc'
make[2]: Leaving directory '/home/Tatjana/apache-couchdb-1.6.1/etc'
Making all in src
make[2]: Entering directory '/home/Tatjana/apache-couchdb-1.6.1/src'
Making all in couch_dbupdates
make[3]: Entering directory '/home/Tatjana/apache-couchdb-1.6.1/src/couch_dbupdates'
/usr/local/bin/erlc -I../../src/couchdb -o ebin/   src/couch_dbupdates.erl;
src/couch_dbupdates.erl: internal error in expand_module;
crash reason: undef

  in function  erl_parse:new_anno/1
     called as erl_parse:new_anno({function,0,module_info,0,
           [{clause,0,[],[],
                    [{call,0,
                           {remote,0,{atom,0,erlang},{atom,0,get_module_info}},
                           [{atom,0,couch_dbupdates}]}]}]})
  in call from sys_pre_expand:'-module_predef_funcs/1-lc$^0/1-0-'/1 (sys_pre_expand.erl, line 119)
  in call from sys_pre_expand:module_predef_funcs/1 (sys_pre_expand.erl, line 119)
  in call from sys_pre_expand:module/2 (sys_pre_expand.erl, line 81)
  in call from compile:expand_module/1 (compile.erl, line 1202)
  in call from compile:'-internal_comp/4-anonymous-1-'/2 (compile.erl, line 295)
  in call from compile:fold_comp/3 (compile.erl, line 321)
  in call from compile:internal_comp/4 (compile.erl, line 305)
Makefile:517: recipe for target 'ebin/couch_dbupdates.beam' failed
make[3]: *** [ebin/couch_dbupdates.beam] Error 1
make[3]: Leaving directory '/home/Tatjana/apache-couchdb-1.6.1/src/couch_dbupdates'
Makefile:687: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/Tatjana/apache-couchdb-1.6.1/src'
Makefile:481: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/Tatjana/apache-couchdb-1.6.1'
Makefile:381: recipe for target 'all' failed
make: *** [all] Error 2`

【问题讨论】:

    标签: build erlang couchdb fedora


    【解决方案1】:

    我安装了多个版本的 erl 并得到相同的错误。删除旧版本(rm -rf /usr/local/lib/erlang),然后为 CouchDB 安装正确的版本,一切就绪。

    【讨论】:

      猜你喜欢
      • 2015-07-13
      • 2015-10-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-07-03
      • 2016-02-05
      • 1970-01-01
      相关资源
      最近更新 更多