Project

General

Profile

Can't locate Apache/Authn/Redmine.pm in @INC

Added by lijun yin almost 7 years ago

When I tried to config httpd to access git with redmine auth, got this error.
mod_perl was installed yet.
Anyone who can fix this problem, please help me.
Thanks.

OS
CentOS with the latest update.

# ruby --version
ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-linux]

# rails --version
Rails 4.2.8

Redmine 3.3.3

# httpd -v
Server version: Apache/2.4.6 (CentOS)
Server built: Apr 12 2017 21:03:28

mkdir -p /usr/lib/perl5/Apache/Authn
ln -s /var/lib/redmine/extra/svn/Redmine.pm /usr/lib/perl5/Apache/Authn/Redmine.pm

# systemctl status httpd -l

● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Fri 2017-04-28 09:20:34 CST; 2min 8s ago
     Docs: man:httpd(8)
           man:apachectl(8)
  Process: 2744 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
  Process: 2742 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
 Main PID: 2742 (code=exited, status=1/FAILURE)

Apr 28 09:20:34 rmserver systemd[1]: Starting The Apache HTTP Server...
Apr 28 09:20:34 rmserver httpd[2742]: AH00526: Syntax error on line 1 of /etc/httpd/conf.d/redmine.conf:
Apr 28 09:20:34 rmserver httpd[2742]: *Can't locate Apache/Authn/Redmine.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /etc/httpd) at (eval 2) line 2.\n*
Apr 28 09:20:34 rmserver systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Apr 28 09:20:34 rmserver kill[2744]: kill: cannot find process "" 
Apr 28 09:20:34 rmserver systemd[1]: httpd.service: control process exited, code=exited status=1
Apr 28 09:20:34 rmserver systemd[1]: Failed to start The Apache HTTP Server.
Apr 28 09:20:34 rmserver systemd[1]: Unit httpd.service entered failed state.
Apr 28 09:20:34 rmserver systemd[1]: httpd.service failed.

Replies (1)

RE: Can't locate Apache/Authn/Redmine.pm in @INC - Added by lijun yin almost 7 years ago

Installing the dependencies before compiling ruby from source, I had solved this problem.

[install order]
sudo yum -y install readline readline-devel openssl openssl-libs openssl-devel ImageMagick ImageMagick-devel ipa-pgothic-fonts gdbm gdbm-devel
wget https://ruby.taobao.org/mirrors/ruby/2.3/ruby-2.3.4.tar.gz
tar zxvf ruby-2.3.4.tar.gz
cd ruby-2.3.4
./configure
make
make install

    (1-1/1)