未定义的函数crypto:start / 0

时间:2015-06-28 11:41:50

标签: macos erlang

尝试拨打kartik:ejabberd-master Kartik$ erl Erlang/OTP 17 [erts-6.4] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false] Eshell V6.4 (abort with ^G) 1> crypto:start(). ** exception error: undefined function crypto:start/0 2> =ERROR REPORT==== 28-Jun-2015::17:15:53 === Unable to load crypto library. Failed with error: "load, Library load-call unsuccessful." OpenSSL might not be installed on this system. =ERROR REPORT==== 28-Jun-2015::17:15:53 === The on_load function for module crypto returned {error, {load,"Library load-call unsuccessful."}} 时出现以下错误:

  

**异常错误:未定义函数crypto:start / 0

见下文。我正在运行Mac OS X 10.7.5。

#include <stdio.h>
#include <stdlib.h>

#include <gtk/gtk.h>

int
main (int argc, char *argv[])
{
  GtkWidget *win;
  GtkWidget *btn;

  gtk_init (&argc, &argv);

  win = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  btn = gtk_button_new_with_label ("Hello");

  gtk_container_add (GTK_CONTAINER (win), btn);
  gtk_widget_show_all (win);

  gtk_main();
}

0 个答案:

没有答案