error loading module when using luaossl

448 views
Skip to first unread message

d v

unread,
Nov 22, 2017, 11:48:19 AM11/22/17
to Tarantool discussion group (English)
Hi ! 
   I have installed "luaossl" with the yum command, but there are some errors when I run it.
my code:
local pkey = require"openssl.pkey"
local x509 = require"openssl.x509"
local name = require"openssl.x509.name"
local altname = require"openssl.x509.altname"

error message:
./test.lua:5: module 'openssl.pkey' not found:
no field package.preload['openssl.pkey']
no file './openssl/pkey.lua'
no file './openssl/pkey/init.lua'
no file './openssl/pkey.so'
no file '/home/.rocks/share/tarantool/openssl/pkey.lua'
no file '/home/.rocks/share/tarantool/openssl/pkey/init.lua'
no file '/.rocks/share/tarantool/openssl/pkey.lua'
no file '/.rocks/share/tarantool/openssl/pkey/init.lua'
no file '/home/.rocks/lib/tarantool/openssl/pkey.so'
no file '/.rocks/lib/tarantool/openssl/pkey.s

I've added the file to the search path, but I found another error.
package.path = package.path .. ";/usr/share/tarantool/openssl/openssl.lua;/usr/share/tarantool/openssl/openssl.x509.lua;"
package.cpath = package.cpath .. ";/usr/lib64/tarantool/_openssl.so"


error message:
package.path = package.path .. ";/usr/share/tarantool/openssl/openssl.lua;/usr/share/tarantool/openssl/openssl.x509.lua;"
package.cpath = package.cpath .. ";/usr/lib64/tarantool/_openssl.so"


my system  info:
CentOS Linux release 7.4.1708 (Core) 
tarantool-1.7.6.9-1.el7.centos.x86_64     
tarantool-luaossl-0.0.1.91-1.el7.centos.x86_64 


I have tried many ways, or the problem is still not solved. Can anyone help me? thank you very much!



cacrus

unread,
Dec 4, 2017, 11:29:10 AM12/4/17
to Tarantool discussion group (English)
Uninstall it and than install it via luarocks . It works. 

luarocks install luaossl. 

tarantool-luaossl gives error even with me . 

tarantool> local pkey = require"openssl.pkey"
---
- error: "error loading module 'openssl.pkey' from file '/usr/lib64/tarantool/_openssl.so':\n\t/usr/lib64/tarantool/_openssl.so:
    undefined symbol: luaopen_openssl_pkey"
...

Hopefully it will help.
Reply all
Reply to author
Forward
0 new messages