skynet启动报错 module 'skynet.require' not found: #1783
ericzhanchina
started this conversation in
General
Replies: 2 comments 4 replies
-
要不用merge的方式升级所有文件?你这样搞的话,lua代码和c代码不是同一个版本了。 |
Beta Was this translation helpful? Give feedback.
4 replies
-
应该还是项目编译的问题,但是我不知道为啥出现这种情况,我在本地的项目就可以跑起来,但是传到服务器就会报这个错误了 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
原来一直用的skynet 1.5版本,现在想升级到最新的1.6版本,所以把最新版本下载下来,编译后,./skynet examples/config可以启动。
于是想保留原来的老版本,直接把新的代码放到项目的根目录下的skyne160目录,然后修改配置文件,这样可以保留原来的1.5版本,同时可以用1.6
这个是一个进程的配置文件,结果启动的时候直接就报错了。
启动进程的sh文件如下,主要读取一下skynet.config文件,然后从skynet160的目录的skynet来调用
这里是提示的错误
21/07/23 06:50:16.87 [:00000002] KILL self
21/07/23 07:04:16.93 [:00000002] LAUNCH snlua bootstrap
21/07/23 07:04:16.93 [:00000002] lua loader error : ./skynet160/lualib/loader.lua:48: module 'skynet.require' not found:
no field package.preload['skynet.require']
no file './libs/lua/skynet/require.lua'
no file './share/skynet/require.lua'
no file './game/skynet/require.lua'
no file './skynet160/lualib/skynet/require.lua'
no file ''
no file './libs/c/skynet/require.so'
no file './skynet160/luaclib/skynet/require.so'
no module 'skynet.require' in file './skynet160/luaclib/skynet.so'
stack traceback:
[C]: in function 'require'
./skynet160/lualib/loader.lua:48: in main chunk
21/07/23 07:04:16.93 [:00000002] KILL self
Beta Was this translation helpful? Give feedback.
All reactions