LuaSockets library will not correctly load
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
So, I've been annoyingly trying to work with LuaSockets2.0.2, and when I try to use it, I get the following error:
lua5.1: /media/pi/Cruzer/Lua/flywheels.lua:7: module 'luasocket.c' not found:
no field package.preload['luasocket.c']
no file './luasocket/c.lua'
no file '/usr/local/share/lua/5.1/luasocket/c.lua'
no file '/usr/local/share/lua/5.1/luasocket/c/init.lua'
no file '/usr/local/lib/lua/5.1/luasocket/c.lua'
no file '/usr/local/lib/lua/5.1/luasocket/c/init.lua'
no file '/usr/share/lua/5.1/luasocket/c.lua'
no file '/usr/share/lua/5.1/luasocket/c/init.lua'
no file './luasocket/c.so'
no file '/usr/local/lib/lua/5.1/luasocket/c.so'
no file '/usr/lib/arm-linux-gnueabihf/lua/5.1/luasocket/c.so'
no file '/usr/lib/lua/5.1/luasocket/c.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file './luasocket.so'
no file '/usr/local/lib/lua/5.1/luasocket.so'
no file '/usr/lib/arm-linux-gnueabihf/lua/5.1/luasocket.so'
no file '/usr/lib/lua/5.1/luasocket.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'require'
/media/pi/Cruzer/Lua/flywheels.lua:7: in main chunk
[C]: ?
Running it with only Lua gives me the same problem. I read through the LuaSocket documentation, checked over my third-edition Lua book, and tried to do a handful of other things, but I didn't get any different results.
I'm trying to make something that will allow me to send a TCP message to an IP to first see if it's up, and second, see if it will send back data, as it's for an experiment/project thing I'm doing. I'm also using a Raspberry Pi 2+.
I understand that it says it's missing these Lua files. local socket = require("sockets")
gives me a similar error, and trying require("socket")
or require("sockets.lua")
all still give me an error. Nothing currently appears to work, so what should I do?
c lua raspberry-pi luasocket
add a comment |
So, I've been annoyingly trying to work with LuaSockets2.0.2, and when I try to use it, I get the following error:
lua5.1: /media/pi/Cruzer/Lua/flywheels.lua:7: module 'luasocket.c' not found:
no field package.preload['luasocket.c']
no file './luasocket/c.lua'
no file '/usr/local/share/lua/5.1/luasocket/c.lua'
no file '/usr/local/share/lua/5.1/luasocket/c/init.lua'
no file '/usr/local/lib/lua/5.1/luasocket/c.lua'
no file '/usr/local/lib/lua/5.1/luasocket/c/init.lua'
no file '/usr/share/lua/5.1/luasocket/c.lua'
no file '/usr/share/lua/5.1/luasocket/c/init.lua'
no file './luasocket/c.so'
no file '/usr/local/lib/lua/5.1/luasocket/c.so'
no file '/usr/lib/arm-linux-gnueabihf/lua/5.1/luasocket/c.so'
no file '/usr/lib/lua/5.1/luasocket/c.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file './luasocket.so'
no file '/usr/local/lib/lua/5.1/luasocket.so'
no file '/usr/lib/arm-linux-gnueabihf/lua/5.1/luasocket.so'
no file '/usr/lib/lua/5.1/luasocket.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'require'
/media/pi/Cruzer/Lua/flywheels.lua:7: in main chunk
[C]: ?
Running it with only Lua gives me the same problem. I read through the LuaSocket documentation, checked over my third-edition Lua book, and tried to do a handful of other things, but I didn't get any different results.
I'm trying to make something that will allow me to send a TCP message to an IP to first see if it's up, and second, see if it will send back data, as it's for an experiment/project thing I'm doing. I'm also using a Raspberry Pi 2+.
I understand that it says it's missing these Lua files. local socket = require("sockets")
gives me a similar error, and trying require("socket")
or require("sockets.lua")
all still give me an error. Nothing currently appears to work, so what should I do?
c lua raspberry-pi luasocket
trylocal socket = require("socket")
– Mike V.
Nov 23 '18 at 14:59
well,local socket = require("socket")
yields a similar error.
– Mr. Sriracha Sauce
Nov 29 '18 at 5:14
add a comment |
So, I've been annoyingly trying to work with LuaSockets2.0.2, and when I try to use it, I get the following error:
lua5.1: /media/pi/Cruzer/Lua/flywheels.lua:7: module 'luasocket.c' not found:
no field package.preload['luasocket.c']
no file './luasocket/c.lua'
no file '/usr/local/share/lua/5.1/luasocket/c.lua'
no file '/usr/local/share/lua/5.1/luasocket/c/init.lua'
no file '/usr/local/lib/lua/5.1/luasocket/c.lua'
no file '/usr/local/lib/lua/5.1/luasocket/c/init.lua'
no file '/usr/share/lua/5.1/luasocket/c.lua'
no file '/usr/share/lua/5.1/luasocket/c/init.lua'
no file './luasocket/c.so'
no file '/usr/local/lib/lua/5.1/luasocket/c.so'
no file '/usr/lib/arm-linux-gnueabihf/lua/5.1/luasocket/c.so'
no file '/usr/lib/lua/5.1/luasocket/c.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file './luasocket.so'
no file '/usr/local/lib/lua/5.1/luasocket.so'
no file '/usr/lib/arm-linux-gnueabihf/lua/5.1/luasocket.so'
no file '/usr/lib/lua/5.1/luasocket.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'require'
/media/pi/Cruzer/Lua/flywheels.lua:7: in main chunk
[C]: ?
Running it with only Lua gives me the same problem. I read through the LuaSocket documentation, checked over my third-edition Lua book, and tried to do a handful of other things, but I didn't get any different results.
I'm trying to make something that will allow me to send a TCP message to an IP to first see if it's up, and second, see if it will send back data, as it's for an experiment/project thing I'm doing. I'm also using a Raspberry Pi 2+.
I understand that it says it's missing these Lua files. local socket = require("sockets")
gives me a similar error, and trying require("socket")
or require("sockets.lua")
all still give me an error. Nothing currently appears to work, so what should I do?
c lua raspberry-pi luasocket
So, I've been annoyingly trying to work with LuaSockets2.0.2, and when I try to use it, I get the following error:
lua5.1: /media/pi/Cruzer/Lua/flywheels.lua:7: module 'luasocket.c' not found:
no field package.preload['luasocket.c']
no file './luasocket/c.lua'
no file '/usr/local/share/lua/5.1/luasocket/c.lua'
no file '/usr/local/share/lua/5.1/luasocket/c/init.lua'
no file '/usr/local/lib/lua/5.1/luasocket/c.lua'
no file '/usr/local/lib/lua/5.1/luasocket/c/init.lua'
no file '/usr/share/lua/5.1/luasocket/c.lua'
no file '/usr/share/lua/5.1/luasocket/c/init.lua'
no file './luasocket/c.so'
no file '/usr/local/lib/lua/5.1/luasocket/c.so'
no file '/usr/lib/arm-linux-gnueabihf/lua/5.1/luasocket/c.so'
no file '/usr/lib/lua/5.1/luasocket/c.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file './luasocket.so'
no file '/usr/local/lib/lua/5.1/luasocket.so'
no file '/usr/lib/arm-linux-gnueabihf/lua/5.1/luasocket.so'
no file '/usr/lib/lua/5.1/luasocket.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'require'
/media/pi/Cruzer/Lua/flywheels.lua:7: in main chunk
[C]: ?
Running it with only Lua gives me the same problem. I read through the LuaSocket documentation, checked over my third-edition Lua book, and tried to do a handful of other things, but I didn't get any different results.
I'm trying to make something that will allow me to send a TCP message to an IP to first see if it's up, and second, see if it will send back data, as it's for an experiment/project thing I'm doing. I'm also using a Raspberry Pi 2+.
I understand that it says it's missing these Lua files. local socket = require("sockets")
gives me a similar error, and trying require("socket")
or require("sockets.lua")
all still give me an error. Nothing currently appears to work, so what should I do?
c lua raspberry-pi luasocket
c lua raspberry-pi luasocket
edited Nov 29 '18 at 5:17
Mr. Sriracha Sauce
asked Nov 23 '18 at 7:56
Mr. Sriracha SauceMr. Sriracha Sauce
63
63
trylocal socket = require("socket")
– Mike V.
Nov 23 '18 at 14:59
well,local socket = require("socket")
yields a similar error.
– Mr. Sriracha Sauce
Nov 29 '18 at 5:14
add a comment |
trylocal socket = require("socket")
– Mike V.
Nov 23 '18 at 14:59
well,local socket = require("socket")
yields a similar error.
– Mr. Sriracha Sauce
Nov 29 '18 at 5:14
try
local socket = require("socket")
– Mike V.
Nov 23 '18 at 14:59
try
local socket = require("socket")
– Mike V.
Nov 23 '18 at 14:59
well,
local socket = require("socket")
yields a similar error.– Mr. Sriracha Sauce
Nov 29 '18 at 5:14
well,
local socket = require("socket")
yields a similar error.– Mr. Sriracha Sauce
Nov 29 '18 at 5:14
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53442660%2fluasockets-library-will-not-correctly-load%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53442660%2fluasockets-library-will-not-correctly-load%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
try
local socket = require("socket")
– Mike V.
Nov 23 '18 at 14:59
well,
local socket = require("socket")
yields a similar error.– Mr. Sriracha Sauce
Nov 29 '18 at 5:14