Bug 1309799 - luarocks install expat fails on dependency expat
luarocks install expat fails on dependency expat
Status: CLOSED NOTABUG
Product: Fedora EPEL
Classification: Fedora
Component: luarocks (Show other bugs)
el6
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Michel Alexandre Salim
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-02-18 13:01 EST by Bruce O. Benson
Modified: 2016-07-05 00:24 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-07-05 00:24:47 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Bruce O. Benson 2016-02-18 13:01:33 EST
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 13:03:28 EST
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 13:05:04 EST
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 Alexandre Salim 2016-07-05 00:24:47 EDT
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.