我从conda(Miniconda3-4.5.4-MacOSX-x86_64
)安装了RabbitMQ:
$ wget https://repo.continuum.io/miniconda/Miniconda3-4.5.4-MacOSX-x86_64.sh
$ bash Miniconda3-4.5.4-MacOSX-x86_64.sh -b -p conda
$ export PATH=${PWD}/conda/bin:${PATH}
$ conda install -c conda-forge rabbitmq-server=3.7.13
$ which rabbitmq-server
/Users/username/projects/myapp/conda/bin/rabbitmq-server
当我尝试运行它时,出现如下错误:
$ rabbitmq-server
dyld: Library not loaded: @rpath/libtinfo.6.dylib
Referenced from: /Users/username/projects/myapp/conda/lib/erlang/erts-10.3/bin/beam.smp
Reason: image not found
/Users/username/projects/myapp/conda/lib/rabbitmq/sbin/rabbitmq-server: line 201: 52785 Abort trap: 6 NOTIFY_SOCKET= RABBITMQ_CONFIG_FILE=$RABBITMQ_CONFIG_FILE ERL_CRASH_DUMP=$ERL_CRASH_DUMP RABBITMQ_CONFIG_ARG_FILE=$RABBITMQ_CONFIG_ARG_FILE RABBITMQ_DIST_PORT=$RABBITMQ_DIST_PORT ${ERL_DIR}erl -pa "$RABBITMQ_EBIN_ROOT" -boot "${CLEAN_BOOT_FILE}" -noinput -hidden -s rabbit_prelaunch ${RABBITMQ_NAME_TYPE} ${RABBITMQ_PRELAUNCH_NODENAME} -conf_advanced "${RABBITMQ_ADVANCED_CONFIG_FILE}" -rabbit enabled_plugins_file "\"$RABBITMQ_ENABLED_PLUGINS_FILE\"" -rabbit plugins_dir "\"$RABBITMQ_PLUGINS_DIR\"" -extra "${RABBITMQ_NODENAME}"
$ rabbitmqctl status
dyld: Library not loaded: @rpath/libtinfo.6.dylib
Referenced from: /Users/username/projects/myapp/conda/lib/erlang/erts-10.3/bin/beam.smp
Reason: image not found
知道发生了什么吗? Google上没有任何帮助。我在macOS Sierra 10.12.6上运行。我已经看到很多指南说要使用Homebrew来实现此目的,但是我真的想坚持使用conda,因为我将conda部署在其他服务器上。
答案 0 :(得分:1)
结果是这里列出了一个答案:https://github.com/conda-forge/fish-feedstock/issues/14#issuecomment-430807396
您的问题看起来与conda-forge/tmux-feedstock#12非常相似。我知道了 在软件包列表中,您还具有默认的ncurses 渠道。 conda是否可以安装conda-forge :: ncurses来解决此错误?
在安装其他组件之前运行此命令可修复错误:
conda install conda-forge::ncurses