You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Anshum Gupta (JIRA)" <ji...@apache.org> on 2015/01/20 18:07:35 UTC
[jira] [Commented] (SOLR-6993) install_solr_service.sh won't
install on RHEL / CentOS
[ https://issues.apache.org/jira/browse/SOLR-6993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14284023#comment-14284023 ]
Anshum Gupta commented on SOLR-6993:
------------------------------------
[~thelabdude] what do you think about this one? Is it for 5.0?
> install_solr_service.sh won't install on RHEL / CentOS
> ------------------------------------------------------
>
> Key: SOLR-6993
> URL: https://issues.apache.org/jira/browse/SOLR-6993
> Project: Solr
> Issue Type: Bug
> Components: scripts and tools
> Affects Versions: 5.0, Trunk
> Environment: RHEL 6.5 / CentOS 6.5
> Reporter: David Anderson
> Priority: Blocker
> Fix For: 5.0, Trunk
>
> Attachments: SOLR-6993.patch
>
>
> There's a bug that will prevent install_solr_service.sh from working on RHEL / CentOS 6.5. It works on Ubuntu 14. Appears to be some obscure difference in bash expression evaluation behavior.
> line 87 and 89: SOLR_DIR=${SOLR_INSTALL_FILE:0:-4}
> blows up with this error:
> ./install_solr_service.sh: line 87: -4: substring expression < 0
> this results in the archive not being extracted and rest of the script won't work.
> I tested a simple change:
> SOLR_DIR=${SOLR_INSTALL_FILE%.tgz}
> and verified it works on both RHEL 6.5 and Ubuntu 14
> Patch is attached. I set this to Major thinking that not being able to install on CentOS is worth fixing prior to release.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org