0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

perl-DBD-MySQLのSRPMでmysqlのPATHを指定してRPMを作成する方法

0
Posted at
# perl-DBD-MySQL の src.rpm をダウンロード
yum install yum-utils
yumdownloader perl-DBD-MySQL
yum remove -y mysql-devel
yum install -y \
 gcc perl-DBI perl-devel

cd /root/rpmbuild/SPECS/
  • 自前でビルドした mysql が /opt/mysql/ にインストールしている時、以下指定
perl-DBD-MySQL.spec
  %build
- perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" --ssl
+ perl Makefile.PL --mysql_config=/opt/mysql/bin/mysql_config INSTALLDIRS=vendor OPTIMIZE="%{optflags}" --ssl
  make %{?_smp_mflags}
ビルド
rpmbuild -bb perl-DBD-MySQL.spec
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?