denglf / erlang-db-driver

Erlang database driver.
Other
28 stars 12 forks source link

找不到,ERLANG 环境 #2

Closed smart2012 closed 12 years ago

smart2012 commented 12 years ago

非常感谢,上次编译问题解决了

遇到新的问题,./configure 的时候 提示找不到erlang环境

1。在家里提示的是没有安装ERLANG 2.。在公司提示的是 checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for gcc option to accept ISO C99... -std=gnu99 checking for gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99 checking Shared library... Done checking for erl... /usr/local/bin/erl checking erl_interface... configure: error: Cannot find erl_interface library

是否需要别的设置?

版本都是 Erlang R15B01

denglf commented 12 years ago

是没有找到erl_interface,你看看/usr/local/lib/erlang/lib/下面有没有?

smart2012 commented 12 years ago

这个是存在的,上个版本就没有这个问题 [root@localhost doc]# cd /usr/local/lib/erlang/lib/ [root@localhost lib]# dir appmon-2.1.14 cosNotification-1.1.18 edoc-0.7.9.1 gs-1.5.15 megaco-3.16 parsetools-2.0.7 sasl-2.2.1 test_server-3.5 wx-0.99.2 appmon-2.1.14.1 cosProperty-1.1.15 eldap-1.0 gs-1.5.15.1 megaco-3.16.0.1 percept-0.8.6.1 snmp-4.21.4 test_server-3.5.1 xmerl-1.3 asn1-1.6.19 cosTime-1.1.12 erl_docgen-0.3 hipe-3.9 mnesia-4.6 pman-2.7.1.1 snmp-4.22 toolbar-1.4.2.1 xmerl-1.3.1 asn1-1.7 cosTransactions-1.2.12 erl_docgen-0.3.1 hipe-3.9.1 mnesia-4.7 pman-2.7.1.2 ssh-2.0.9 toolbar-1.4.2.2 common_test-1.6 crypto-2.1 erl_interface-3.7.6 ic-4.2.29 observer-1.0 public_key-0.14 ssh-2.1 tools-2.6.6.6 common_test-1.6.1 debugger-3.2.7 erl_interface-3.7.7 ic-4.2.30 observer-1.1 public_key-0.15 ssl-5.0 tools-2.6.7 compiler-4.8 debugger-3.2.8 erts-5.9 inets-5.8 orber-3.6.23 reltool-0.5.7.1 ssl-5.0.1 tv-2.1.4.8 compiler-4.8.1 dialyzer-2.5 erts-5.9.1 inets-5.9 orber-3.6.24 reltool-0.6 stdlib-1.18 tv-2.1.4.9 cosEvent-2.1.12 dialyzer-2.5.1 et-1.4.4 inviso-0.6.3 os_mon-2.2.8 runtime_tools-1.8.7 stdlib-1.18.1 typer-0.9.3 cosEventDomain-1.1.12 diameter-1.0 et-1.4.4.1 kernel-2.15 os_mon-2.2.9 runtime_tools-1.8.8 syntax_tools-1.6.7.2 webtool-0.8.9.1 cosFileTransfer-1.1.13 diameter-1.1 eunit-2.2.2 kernel-2.15.1 otp_mibs-1.0.7 sasl-2.2 syntax_tools-1.6.8 wx-0.99.1

denglf commented 12 years ago

erl_interface*/include/erl_interface.h可以找到吗?

denglf commented 12 years ago

我用的版本是R15B,没试过R15B01。

denglf commented 12 years ago

检查erl_interface时会找erl_interface-3.7.7/include/erl_interface.h文件,不知道目录结构是否改变。

smart2012 commented 12 years ago

恩,有这个文件 [root@localhost lib]# ls -al erl_interface-3.7.7/include/ 总计 60 drwxr-xr-x 2 root root 4096 05-31 10:41 . drwxr-xr-x 6 root root 4096 04-05 17:02 .. -rw-r--r-- 1 root root 782 04-05 17:03 eicode.h -rw-r--r-- 1 root root 794 04-05 17:03 ei_connect.h -rw-r--r-- 1 root root 27367 04-05 17:03 ei.h -rw-r--r-- 1 root root 13736 04-05 17:03 erl_interface.h

smart2012 commented 12 years ago

问题解决了,跟ERLANG 安装路径有关

gatement commented 11 years ago

I have the same issue when do "./configure": "checking erl_interface... configure: error: Cannot find erl_interface library"

My Erlang is: R16B Install location is: /usr/local/lib/erlang

Who can point out what cause this issue?

gatement commented 11 years ago

Finally I fixed it. I found it was caused by the erl_interface library url. Because my Linux is x64 so it will go to /usr/local/lib64/erlang/lib to search for erl_interface, but my Erlang was installed in /usr/local/lib/erlang.

so I did the following to fix it (adding an Erlang link to lib64): cd /usr/local/lib64 ln -s /usr/local/lib/erlang .