#453 Prosody should tell me how to fix dependency problems in a more familiar way for somebody who is not a lua expert
Reporter
manuel.blechschmidt
Owner
Zash
Created
Updated
Stars
★ (1)
Tags
Priority-Medium
Status-WontFix
Type-Defect
manuel.blechschmidt
on
*What steps will reproduce the problem?*
1. Delete e.g. lxp extension or export LUA_PATH=""
2. Execute sudo -E prosodyctl start
3. System shows message that lxp is missing
*What is the expected output? What do you see instead?*
Expected:
**************************
Prosody was unable to find util.hashes
Path that was searched: /opt/local/lib/prosody/?.lua;/opt/local/share/luarocks/share/lua/5.1/?.lua;/opt/local/share/luarocks/share/lua/5.1/?/init.lua;/Users/manuel/.luarocks/share/lua/5.1/?.lua;/Users/manuel/.luarocks/share/lua/5.1/?/init.lua;/opt/local/share/lua/5.1//?.lua;/opt/local/share/lua/5.1//?/init.lua;/opt/local/share/lua/5.1/?.lua;/opt/local/share/lua/5.1/?/init.lua;/opt/local/lib/lua/5.1/?.lua;/opt/local/lib/lua/5.1/?/init.lua;
This package can be obtained in the following ways:
Windows: Make sure you have hashes.dll from the Prosody distribution in util/
GNU/Linux: Run './configure' and 'make' in the Prosody source directory to build util/hashes.so
util.hashes is required for Prosody to run, so we will now exit.
More help can be found on our website, at http://prosody.im/doc/depends
**************************
*What version of the product are you using? On what operating system?*
Mac OS X 10.10.1 prosody trunk from today
*Please provide any additional information below.*
I will attach a patch created using the convention from:
http://prosody.im/doc/contribute
I fail to see how dumping the search path helps someone unfamiliar with Lua. The current message already says how to correct the problem. There's not that much we can do about someone deliberately breaks their environment. Closing.
*What steps will reproduce the problem?* 1. Delete e.g. lxp extension or export LUA_PATH="" 2. Execute sudo -E prosodyctl start 3. System shows message that lxp is missing *What is the expected output? What do you see instead?* Expected: ************************** Prosody was unable to find util.hashes Path that was searched: /opt/local/lib/prosody/?.lua;/opt/local/share/luarocks/share/lua/5.1/?.lua;/opt/local/share/luarocks/share/lua/5.1/?/init.lua;/Users/manuel/.luarocks/share/lua/5.1/?.lua;/Users/manuel/.luarocks/share/lua/5.1/?/init.lua;/opt/local/share/lua/5.1//?.lua;/opt/local/share/lua/5.1//?/init.lua;/opt/local/share/lua/5.1/?.lua;/opt/local/share/lua/5.1/?/init.lua;/opt/local/lib/lua/5.1/?.lua;/opt/local/lib/lua/5.1/?/init.lua; This package can be obtained in the following ways: Windows: Make sure you have hashes.dll from the Prosody distribution in util/ GNU/Linux: Run './configure' and 'make' in the Prosody source directory to build util/hashes.so util.hashes is required for Prosody to run, so we will now exit. More help can be found on our website, at http://prosody.im/doc/depends ************************** *What version of the product are you using? On what operating system?* Mac OS X 10.10.1 prosody trunk from today *Please provide any additional information below.* I will attach a patch created using the convention from: http://prosody.im/doc/contribute
Patch for more extensive error message.
AttachmentsHere is a discussion from 4 years ago about a similar problem: http://www.notadiscussion.com/2009/06/luapath-on-osx.html
It might also be enough to tell the user to execute $ ./prosodyctl about Prosody hg:f876d7363bdc # Prosody directories Data directory: ./ Plugin directory: ./ Config directory: . Source directory: . # Lua environment Lua version: Lua 5.1 Lua module search paths: /Users/manuel/Projects/video-consult/workspace/prosody-trunk/?.lua /opt/local/share/luarocks/share/lua/5.1/?.lua /opt/local/share/luarocks/share/lua/5.1/?/init.lua /Users/manuel/.luarocks/share/lua/5.1/?.lua /Users/manuel/.luarocks/share/lua/5.1/?/init.lua /opt/local/share/lua/5.1//?.lua /opt/local/share/lua/5.1//?/init.lua /opt/local/share/lua/5.1/?.lua /opt/local/share/lua/5.1/?/init.lua /opt/local/lib/lua/5.1/?.lua /opt/local/lib/lua/5.1/?/init.lua /Users/manuel/Projects/video-consult/workspace/prosody-trunk/?.lua /opt/local/share/luarocks/share/lua/5.1/?.lua /opt/local/share/luarocks/share/lua/5.1/?/init.lua /Users/manuel/.luarocks/share/lua/5.1/?.lua /Users/manuel/.luarocks/share/lua/5.1/?/init.lua /opt/local/share/lua/5.1//?.lua /opt/local/share/lua/5.1//?/init.lua /opt/local/share/lua/5.1/?.lua /opt/local/share/lua/5.1/?/init.lua /opt/local/lib/lua/5.1/?.lua /opt/local/lib/lua/5.1/?/init.lua /Users/manuel/Projects/video-consult/workspace/prosody-trunk/?.lua /opt/local/share/luarocks/share/lua/5.1/?.lua /opt/local/share/luarocks/share/lua/5.1/?/init.lua /Users/manuel/.luarocks/share/lua/5.1/?.lua /Users/manuel/.luarocks/share/lua/5.1/?/init.lua /opt/local/share/lua/5.1//?.lua /opt/local/share/lua/5.1//?/init.lua /opt/local/share/lua/5.1/?.lua /opt/local/share/lua/5.1/?/init.lua /opt/local/lib/lua/5.1/?.lua /opt/local/lib/lua/5.1/?/init.lua /Users/manuel/Projects/video-consult/workspace/prosody-trunk/?.lua /opt/local/share/luarocks/share/lua/5.1/?.lua /opt/local/share/luarocks/share/lua/5.1/?/init.lua /Users/manuel/.luarocks/share/lua/5.1/?.lua /Users/manuel/.luarocks/share/lua/5.1/?/init.lua /opt/local/share/lua/5.1//?.lua /opt/local/share/lua/5.1//?/init.lua /opt/local/share/lua/5.1/?.lua /opt/local/share/lua/5.1/?/init.lua /opt/local/lib/lua/5.1/?.lua /opt/local/lib/lua/5.1/?/init.lua /opt/local/share/luarocks/share/lua/5.1/?.lua /opt/local/share/luarocks/share/lua/5.1/?/init.lua /Users/manuel/.luarocks/share/lua/5.1/?.lua /Users/manuel/.luarocks/share/lua/5.1/?/init.lua /opt/local/share/lua/5.1//?.lua /opt/local/share/lua/5.1//?/init.lua /opt/local/share/lua/5.1/?.lua /opt/local/share/lua/5.1/?/init.lua /opt/local/lib/lua/5.1/?.lua /opt/local/lib/lua/5.1/?/init.lua /opt/local/share/luarocks/share/lua/5.1/?.lua /opt/local/share/luarocks/share/lua/5.1/?/init.lua /Users/manuel/.luarocks/share/lua/5.1/?.lua /Users/manuel/.luarocks/share/lua/5.1/?/init.lua /opt/local/share/lua/5.1//?.lua /opt/local/share/lua/5.1//?/init.lua /opt/local/share/lua/5.1/?.lua /opt/local/share/lua/5.1/?/init.lua /opt/local/lib/lua/5.1/?.lua /opt/local/lib/lua/5.1/?/init.lua /opt/local/share/luarocks/share/lua/5.1/?.lua /opt/local/share/luarocks/share/lua/5.1/?/init.lua /Users/manuel/.luarocks/share/lua/5.1/?.lua /Users/manuel/.luarocks/share/lua/5.1/?/init.lua /opt/local/share/lua/5.1//?.lua /opt/local/share/lua/5.1//?/init.lua /opt/local/share/lua/5.1/?.lua /opt/local/share/lua/5.1/?/init.lua /opt/local/lib/lua/5.1/?.lua /opt/local/lib/lua/5.1/?/init.lua /opt/local/share/luarocks/share/lua/5.1/?.lua /opt/local/share/luarocks/share/lua/5.1/?/init.lua /Users/manuel/.luarocks/share/lua/5.1/?.lua /Users/manuel/.luarocks/share/lua/5.1/?/init.lua /opt/local/share/lua/5.1//?.lua /opt/local/share/lua/5.1//?/init.lua /opt/local/share/lua/5.1/?.lua /opt/local/share/lua/5.1/?/init.lua /opt/local/lib/lua/5.1/?.lua /opt/local/lib/lua/5.1/?/init.lua Lua C module search paths: /Users/manuel/Projects/video-consult/workspace/prosody-trunk/?.so /opt/local/share/luarocks/lib/lua/5.1/?.so /Users/manuel/.luarocks/lib/lua/5.1/?.so /opt/local/lib/lua/5.1/?.so /opt/local/lib/lua/5.1/loadall.so /Users/manuel/Projects/video-consult/workspace/prosody-trunk/util/?.so /opt/local/share/luarocks/lib/lua/5.1/?.so /Users/manuel/.luarocks/lib/lua/5.1/?.so /opt/local/lib/lua/5.1/?.so /opt/local/lib/lua/5.1/loadall.so /Users/manuel/Projects/video-consult/workspace/prosody-trunk/util/?.so /opt/local/share/luarocks/lib/lua/5.1/?.so /Users/manuel/.luarocks/lib/lua/5.1/?.so /opt/local/lib/lua/5.1/?.so /opt/local/lib/lua/5.1/loadall.so /Users/manuel/Projects/video-consult/workspace/prosody-trunk/?.so /opt/local/share/luarocks/lib/lua/5.1/?.so /Users/manuel/.luarocks/lib/lua/5.1/?.so /opt/local/lib/lua/5.1/?.so /opt/local/lib/lua/5.1/loadall.so /opt/local/share/luarocks/lib/lua/5.1/?.so /Users/manuel/.luarocks/lib/lua/5.1/?.so /opt/local/lib/lua/5.1/?.so /opt/local/lib/lua/5.1/loadall.so /opt/local/share/luarocks/lib/lua/5.1/?.so /Users/manuel/.luarocks/lib/lua/5.1/?.so /opt/local/lib/lua/5.1/?.so /opt/local/lib/lua/5.1/loadall.so /opt/local/share/luarocks/lib/lua/5.1/?.so /Users/manuel/.luarocks/lib/lua/5.1/?.so /opt/local/lib/lua/5.1/?.so /opt/local/lib/lua/5.1/loadall.so /opt/local/share/luarocks/lib/lua/5.1/?.so /Users/manuel/.luarocks/lib/lua/5.1/?.so /opt/local/lib/lua/5.1/?.so /opt/local/lib/lua/5.1/loadall.so LuaRocks: Not installed # Lua module versions lfs: LuaFileSystem 1.6.2 lxp: LuaExpat 1.3.0 socket: LuaSocket 3.0-rc1 ssl: 0.5.PR
I fail to see how dumping the search path helps someone unfamiliar with Lua. The current message already says how to correct the problem. There's not that much we can do about someone deliberately breaks their environment. Closing.
Changes