{"id":2120,"date":"2011-09-27T23:12:24","date_gmt":"2011-09-27T23:12:24","guid":{"rendered":"https:\/\/supportex.net\/?p=2120"},"modified":"2019-05-10T18:10:48","modified_gmt":"2019-05-10T16:10:48","slug":"lua-installing-luarocks-rpm-fedora-15","status":"publish","type":"post","link":"https:\/\/supportex.net\/blog\/2011\/09\/lua-installing-luarocks-rpm-fedora-15\/","title":{"rendered":"Lua: installing luarocks as RPM in Fedora 15"},"content":{"rendered":"<p>Ruby has <a href=\"http:\/\/docs.rubygems.org\/read\/book\/2\">gem<\/a>, Python has <a href=\"http:\/\/pypi.python.org\/pypi\/pip\">pip<\/a> and Lua has <a href=\"http:\/\/luarocks.org\/\">luarocks<\/a>. Unfortunately, in Fedora 15 there is no rpm package of luarocks, so if you need it and don&#8217;t want to install it from sources, you will have to build it. Fortunately, there is a <a href=\"http:\/\/thomas.duboucher.free.fr\/luarocks.spec\">spec file<\/a> written by Duboucher Thomas, so we don&#8217;t need to write it from scratch. There is also <a href=\"https:\/\/bugzilla.redhat.com\/show_bug.cgi?id=577514\">package review request<\/a> for Fedora 12, but bugs weren&#8217;t solved still so you might <strong>not<\/strong> want use it on production servers. At the moment last version of luarocks is 2.0.5. <a href=\"http:\/\/luarocks.org\/releases\/luarocks-2.0.5.tar.gz\">Download<\/a> luarocks sources to you SOURCES directory:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">wget http:\/\/luarocks.org\/releases\/luarocks-2.0.5.tar.gz<\/pre>\n<p>Change luarocks version in spec file to &#8220;2.0.5&#8221;:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">Version: 2.0.5<\/pre>\n<p>Build:<\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">rpmbuild -bb ~\/rpmbuild\/SPECS\/luarocks-1.0-1.spec<\/code><\/p>\n<p>Install:<\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">rpm -ivh ~\/rpmbuild\/RPMS\/x86_64\/luarocks-2.0.5-1.fc15.x86_64.rpm<\/code><\/p>\n<p>And use:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">[root@playground ~]# luarocks search geo\nSearch results:\n===============\nRockspecs and source rocks:\n---------------------------\nlua-geoip\n0.1-1 (rockspec) - http:\/\/luarocks.org\/repositories\/rocks\n0.1-1 (src) - http:\/\/luarocks.org\/repositories\/rocks\n[root@playground ~]#<\/pre>\n<p>Now all Lua modules (a.k.a. rocks) from <a href=\"http:\/\/www.luarocks.org\/en\/Browse_rocks\">luarocks<\/a> are available for installation and use.<\/p>\n<p><strong>Didn&#8217;t find the answer to your question? <a href=\"\/contacts\/\">Ask it<\/a> our administrators to reply we will publish on website.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ruby has gem, Python has pip and Lua has luarocks. Unfortunately, in Fedora 15 there is no rpm package of luarocks, so if you need it and don&#8217;t want to install it from sources, you will have to build it. Fortunately, there is a spec file written by Duboucher Thomas, so we don&#8217;t need to&hellip; <\/p>\n<div class=\"readmore-wrapper\"><a href=\"https:\/\/supportex.net\/blog\/2011\/09\/lua-installing-luarocks-rpm-fedora-15\/\" class=\"more-link\">Read <\/a><\/div>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[152],"tags":[275,245],"class_list":["post-2120","post","type-post","status-publish","format-standard","hentry","category-linux","tag-linux","tag-lua-en"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Lua: installing luarocks as RPM in Fedora 15 &#8211; Supportex.NET blog<\/title>\n<meta name=\"description\" content=\"How to install luarocks as RPM in Fedora 15\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/supportex.net\/blog\/2011\/09\/lua-installing-luarocks-rpm-fedora-15\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Lua: installing luarocks as RPM in Fedora 15 &#8211; Supportex.NET blog\" \/>\n<meta property=\"og:description\" content=\"How to install luarocks as RPM in Fedora 15\" \/>\n<meta property=\"og:url\" content=\"https:\/\/supportex.net\/blog\/2011\/09\/lua-installing-luarocks-rpm-fedora-15\/\" \/>\n<meta property=\"og:site_name\" content=\"Supportex.NET blog\" \/>\n<meta property=\"article:published_time\" content=\"2011-09-27T23:12:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-05-10T16:10:48+00:00\" \/>\n<meta name=\"author\" content=\"Oleksii Tykhonov\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Oleksii Tykhonov\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/supportex.net\/blog\/2011\/09\/lua-installing-luarocks-rpm-fedora-15\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/supportex.net\/blog\/2011\/09\/lua-installing-luarocks-rpm-fedora-15\/\"},\"author\":{\"name\":\"Oleksii Tykhonov\",\"@id\":\"https:\/\/supportex.net\/blog\/en\/#\/schema\/person\/0690c26a0266603129fc15eae6243251\"},\"headline\":\"Lua: installing luarocks as RPM in Fedora 15\",\"datePublished\":\"2011-09-27T23:12:24+00:00\",\"dateModified\":\"2019-05-10T16:10:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/supportex.net\/blog\/2011\/09\/lua-installing-luarocks-rpm-fedora-15\/\"},\"wordCount\":152,\"commentCount\":0,\"keywords\":[\"linux\",\"Lua\"],\"articleSection\":[\"linux\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/supportex.net\/blog\/2011\/09\/lua-installing-luarocks-rpm-fedora-15\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/supportex.net\/blog\/2011\/09\/lua-installing-luarocks-rpm-fedora-15\/\",\"url\":\"https:\/\/supportex.net\/blog\/2011\/09\/lua-installing-luarocks-rpm-fedora-15\/\",\"name\":\"Lua: installing luarocks as RPM in Fedora 15 &#8211; Supportex.NET blog\",\"isPartOf\":{\"@id\":\"https:\/\/supportex.net\/blog\/en\/#website\"},\"datePublished\":\"2011-09-27T23:12:24+00:00\",\"dateModified\":\"2019-05-10T16:10:48+00:00\",\"author\":{\"@id\":\"https:\/\/supportex.net\/blog\/en\/#\/schema\/person\/0690c26a0266603129fc15eae6243251\"},\"description\":\"How to install luarocks as RPM in Fedora 15\",\"breadcrumb\":{\"@id\":\"https:\/\/supportex.net\/blog\/2011\/09\/lua-installing-luarocks-rpm-fedora-15\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/supportex.net\/blog\/2011\/09\/lua-installing-luarocks-rpm-fedora-15\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/supportex.net\/blog\/2011\/09\/lua-installing-luarocks-rpm-fedora-15\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/supportex.net\/blog\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Lua: installing luarocks as RPM in Fedora 15\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/supportex.net\/blog\/en\/#website\",\"url\":\"https:\/\/supportex.net\/blog\/en\/\",\"name\":\"Supportex.NET blog\",\"description\":\"Server and network management company\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/supportex.net\/blog\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/supportex.net\/blog\/en\/#\/schema\/person\/0690c26a0266603129fc15eae6243251\",\"name\":\"Oleksii Tykhonov\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/supportex.net\/blog\/en\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4fd5f58002717075c88963469b9babef?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4fd5f58002717075c88963469b9babef?s=96&d=mm&r=g\",\"caption\":\"Oleksii Tykhonov\"},\"url\":\"https:\/\/supportex.net\/blog\/author\/oleksiitykhonov\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Lua: installing luarocks as RPM in Fedora 15 &#8211; Supportex.NET blog","description":"How to install luarocks as RPM in Fedora 15","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/supportex.net\/blog\/2011\/09\/lua-installing-luarocks-rpm-fedora-15\/","og_locale":"en_US","og_type":"article","og_title":"Lua: installing luarocks as RPM in Fedora 15 &#8211; Supportex.NET blog","og_description":"How to install luarocks as RPM in Fedora 15","og_url":"https:\/\/supportex.net\/blog\/2011\/09\/lua-installing-luarocks-rpm-fedora-15\/","og_site_name":"Supportex.NET blog","article_published_time":"2011-09-27T23:12:24+00:00","article_modified_time":"2019-05-10T16:10:48+00:00","author":"Oleksii Tykhonov","twitter_misc":{"Written by":"Oleksii Tykhonov","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/supportex.net\/blog\/2011\/09\/lua-installing-luarocks-rpm-fedora-15\/#article","isPartOf":{"@id":"https:\/\/supportex.net\/blog\/2011\/09\/lua-installing-luarocks-rpm-fedora-15\/"},"author":{"name":"Oleksii Tykhonov","@id":"https:\/\/supportex.net\/blog\/en\/#\/schema\/person\/0690c26a0266603129fc15eae6243251"},"headline":"Lua: installing luarocks as RPM in Fedora 15","datePublished":"2011-09-27T23:12:24+00:00","dateModified":"2019-05-10T16:10:48+00:00","mainEntityOfPage":{"@id":"https:\/\/supportex.net\/blog\/2011\/09\/lua-installing-luarocks-rpm-fedora-15\/"},"wordCount":152,"commentCount":0,"keywords":["linux","Lua"],"articleSection":["linux"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/supportex.net\/blog\/2011\/09\/lua-installing-luarocks-rpm-fedora-15\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/supportex.net\/blog\/2011\/09\/lua-installing-luarocks-rpm-fedora-15\/","url":"https:\/\/supportex.net\/blog\/2011\/09\/lua-installing-luarocks-rpm-fedora-15\/","name":"Lua: installing luarocks as RPM in Fedora 15 &#8211; Supportex.NET blog","isPartOf":{"@id":"https:\/\/supportex.net\/blog\/en\/#website"},"datePublished":"2011-09-27T23:12:24+00:00","dateModified":"2019-05-10T16:10:48+00:00","author":{"@id":"https:\/\/supportex.net\/blog\/en\/#\/schema\/person\/0690c26a0266603129fc15eae6243251"},"description":"How to install luarocks as RPM in Fedora 15","breadcrumb":{"@id":"https:\/\/supportex.net\/blog\/2011\/09\/lua-installing-luarocks-rpm-fedora-15\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/supportex.net\/blog\/2011\/09\/lua-installing-luarocks-rpm-fedora-15\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/supportex.net\/blog\/2011\/09\/lua-installing-luarocks-rpm-fedora-15\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/supportex.net\/blog\/en\/"},{"@type":"ListItem","position":2,"name":"Lua: installing luarocks as RPM in Fedora 15"}]},{"@type":"WebSite","@id":"https:\/\/supportex.net\/blog\/en\/#website","url":"https:\/\/supportex.net\/blog\/en\/","name":"Supportex.NET blog","description":"Server and network management company","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/supportex.net\/blog\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/supportex.net\/blog\/en\/#\/schema\/person\/0690c26a0266603129fc15eae6243251","name":"Oleksii Tykhonov","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/supportex.net\/blog\/en\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/4fd5f58002717075c88963469b9babef?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4fd5f58002717075c88963469b9babef?s=96&d=mm&r=g","caption":"Oleksii Tykhonov"},"url":"https:\/\/supportex.net\/blog\/author\/oleksiitykhonov\/"}]}},"_links":{"self":[{"href":"https:\/\/supportex.net\/blog\/wp-json\/wp\/v2\/posts\/2120","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/supportex.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/supportex.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/supportex.net\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/supportex.net\/blog\/wp-json\/wp\/v2\/comments?post=2120"}],"version-history":[{"count":2,"href":"https:\/\/supportex.net\/blog\/wp-json\/wp\/v2\/posts\/2120\/revisions"}],"predecessor-version":[{"id":3178,"href":"https:\/\/supportex.net\/blog\/wp-json\/wp\/v2\/posts\/2120\/revisions\/3178"}],"wp:attachment":[{"href":"https:\/\/supportex.net\/blog\/wp-json\/wp\/v2\/media?parent=2120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/supportex.net\/blog\/wp-json\/wp\/v2\/categories?post=2120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/supportex.net\/blog\/wp-json\/wp\/v2\/tags?post=2120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}