Bug 1309799 - luarocks install expat fails on dependency expat
Summary: luarocks install expat fails on dependency expat
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: luarocks
Version: el6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michel Lind
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-18 18:01 UTC by Bruce O. Benson
Modified: 2016-07-05 04:24 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-05 04:24:47 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Bruce O. Benson 2016-02-18 18:01:33 UTC
root@t510 / # less /usr/share/doc/luarocks-2.1.2/README.md
root@t510 / # luarocks install luaxmlrpc
Installing http://www.luarocks.org/repositories/rocks/luaxmlrpc-1.2.2-1.src.rock...
Using http://www.luarocks.org/repositories/rocks/luaxmlrpc-1.2.2-1.src.rock... switching to 'build' mode

Missing dependencies for luaxmlrpc:
luaexpat 
luasocket 

Using http://www.luarocks.org/repositories/rocks/luaexpat-1.3.0-1.src.rock... switching to 'build' mode

Error: Failed installing dependency: http://www.luarocks.org/repositories/rocks/luaexpat-1.3.0-1.src.rock - Could not find expected file expat.h, or expat.h for EXPAT -- you may have to install EXPAT in your system and/or pass EXPAT_DIR or EXPAT_INCDIR to the luarocks command. Example: luarocks install luaexpat EXPAT_DIR=/usr/local
root@t510 / # luarocks install luaexpat
Installing http://www.luarocks.org/repositories/rocks/luaexpat-1.3.0-1.src.rock...
Using http://www.luarocks.org/repositories/rocks/luaexpat-1.3.0-1.src.rock... switching to 'build' mode

Error: Could not find expected file expat.h, or expat.h for EXPAT -- you may have to install EXPAT in your system and/or pass EXPAT_DIR or EXPAT_INCDIR to the luarocks command. Example: luarocks install luaexpat EXPAT_DIR=/usr/local
root@t510 / # luarocks search luaexpat

Search results:
===============


Rockspecs and source rocks:
---------------------------

luaexpat
   1.3.0-1 (rockspec) - http://www.luarocks.org/repositories/rocks
   1.3.0-1 (src) - http://www.luarocks.org/repositories/rocks
   1.2.0-1 (rockspec) - http://www.luarocks.org/repositories/rocks
   1.2.0-1 (src) - http://www.luarocks.org/repositories/rocks
   1.1.0-5 (rockspec) - http://www.luarocks.org/repositories/rocks
   1.1.0-5 (src) - http://www.luarocks.org/repositories/rocks
   1.1.0-4 (rockspec) - http://www.luarocks.org/repositories/rocks
   1.1.0-4 (src) - http://www.luarocks.org/repositories/rocks
   1.1.0-3 (rockspec) - http://www.luarocks.org/repositories/rocks
   1.1.0-3 (src) - http://www.luarocks.org/repositories/rocks

root@t510 / #

Comment 1 Bruce O. Benson 2016-02-18 18:03:28 UTC
luarocks was obtained via...

root@t510 / # yum install luarocks
Loaded plugins: auto-update-debuginfo, product-id, refresh-packagekit, security, subscription-manager
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package luarocks.noarch 0:2.1.2-1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===========================================================================================================================
 Package                      Arch                       Version                            Repository                Size
===========================================================================================================================
Installing:
 luarocks                     noarch                     2.1.2-1.el6                        epel                      98 k

Transaction Summary
===========================================================================================================================
Install       1 Package(s)

Total download size: 98 k
Installed size: 396 k
Is this ok [y/N]: y
Downloading Packages:
luarocks-2.1.2-1.el6.noarch.rpm                                                                     |  98 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : luarocks-2.1.2-1.el6.noarch                                                                             1/1 
  Verifying  : luarocks-2.1.2-1.el6.noarch                                                                             1/1 

Installed:
  luarocks.noarch 0:2.1.2-1.el6                                                                                            

Complete!

Comment 2 Bruce O. Benson 2016-02-18 18:05:04 UTC
root@t510 / # rpm -qa | grep lua
lua-5.1.4-4.1.el6.x86_64
luarocks-2.1.2-1.el6.noarch
root@t510 / # cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 6.7 (Santiago)

...Thanks!

Comment 3 Michel Lind 2016-07-05 04:24:47 UTC
Try installing expat-devel?

# yum install gcc lua-devel expat-devel
# luarocks install luaexpat


Note You need to log in before you can comment on or make changes to this bug.