I have been trying to compile megahal for a few hours now and i dont seem to be getting anywhere. Has anyone had success with this? http://megahal.alioth.debian.org/
我一直在尝试编译megahal几个小时,我似乎无处可去。有人有这个成功吗? http://megahal.alioth.debian.org/
I keep getting an error that says :
我一直收到错误消息:
inlined from ‘load_personality.constprop’ at megahal.c:3283:8,
inlined from ‘change_personality.constprop’ at megahal.c:3332:5:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer
return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);
^
cc1: some warnings being treated as errors
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Makefile:44: recipe for target 'pythonmodule' failed
make: *** [pythonmodule] Error 1
I have installed python via sudo apt-get and i have been over every thread that talks about "'x86_64-linux-gnu-gcc' but I have found no solution
我已经通过sudo apt-get安装了python,并且我已经讨论了所有关于“'x86_64-linux-gnu-gcc'的线程,但我找不到解决方案
2 个解决方案
#1
0
You are getting these errors just because you don't have the python development headers installed. You can install it using following command
您只是因为没有安装python开发头而得到这些错误。您可以使用以下命令安装它
sudo apt-get install python-dev ( for python 2.x )
sudo apt-get install python-dev(用于python 2.x)
sudo apt-get install python3-dev ( for python 3 )
sudo apt-get install python3-dev(for python 3)
#2
-1
you need the python developer module "python-dev".this will help you
你需要python开发者模块“python-dev”。这会对你有所帮助
error: command 'gcc' failed with exit status 1 while installing eventlet
错误:命令'gcc'在安装eventlet时失败,退出状态为1
after upgrading to vivid 15.04 on ubuntu i couldn't compile the module anymore so i tried something else. Since in the main folder there is a directory named Megahal with a Makefile in it, i tried to compile from there. First you need to go to that directory.
在ubuntu上升级到生动的15.04后,我再也无法编译模块,所以我尝试了其他的东西。因为在主文件夹中有一个名为Megahal的目录,其中有一个Makefile,我试着从那里编译。首先,您需要转到该目录。
cd /home/user/Downloads/megahal-9.1.1/Megahal/
you need to go where you unzipped the archive and there you can read the README file and start compiling.
你需要去你解压缩档案的地方,在那里你可以阅读README文件并开始编译。
perl Makefile.PL
i copied the missing files i was able to find to that folder and from there
我复制了我能找到的丢失文件到那个文件夹
make
make test
but this didn't work for me and afther that
但这对我不起作用
make install
i had to do
我必须做
sudo make install
and that is all. unfortunately for me i have a problem with perl i think. I keep getting this error from the module "PL_thr_key" after i load it to the eggdrop. The eggdrop works normally except for the module. No module, no AI and no fun :(
这就是全部。不幸的是,我觉得perl有问题。在我将它加载到eggdrop后,我继续从模块“PL_thr_key”获得此错误。除模块外,eggdrop正常工作。没有模块,没有人工智能,没有乐趣:(
#1
0
You are getting these errors just because you don't have the python development headers installed. You can install it using following command
您只是因为没有安装python开发头而得到这些错误。您可以使用以下命令安装它
sudo apt-get install python-dev ( for python 2.x )
sudo apt-get install python-dev(用于python 2.x)
sudo apt-get install python3-dev ( for python 3 )
sudo apt-get install python3-dev(for python 3)
#2
-1
you need the python developer module "python-dev".this will help you
你需要python开发者模块“python-dev”。这会对你有所帮助
error: command 'gcc' failed with exit status 1 while installing eventlet
错误:命令'gcc'在安装eventlet时失败,退出状态为1
after upgrading to vivid 15.04 on ubuntu i couldn't compile the module anymore so i tried something else. Since in the main folder there is a directory named Megahal with a Makefile in it, i tried to compile from there. First you need to go to that directory.
在ubuntu上升级到生动的15.04后,我再也无法编译模块,所以我尝试了其他的东西。因为在主文件夹中有一个名为Megahal的目录,其中有一个Makefile,我试着从那里编译。首先,您需要转到该目录。
cd /home/user/Downloads/megahal-9.1.1/Megahal/
you need to go where you unzipped the archive and there you can read the README file and start compiling.
你需要去你解压缩档案的地方,在那里你可以阅读README文件并开始编译。
perl Makefile.PL
i copied the missing files i was able to find to that folder and from there
我复制了我能找到的丢失文件到那个文件夹
make
make test
but this didn't work for me and afther that
但这对我不起作用
make install
i had to do
我必须做
sudo make install
and that is all. unfortunately for me i have a problem with perl i think. I keep getting this error from the module "PL_thr_key" after i load it to the eggdrop. The eggdrop works normally except for the module. No module, no AI and no fun :(
这就是全部。不幸的是,我觉得perl有问题。在我将它加载到eggdrop后,我继续从模块“PL_thr_key”获得此错误。除模块外,eggdrop正常工作。没有模块,没有人工智能,没有乐趣:(