Ask Your Question
1

"mysql_config --cflags" does not work on fedora 21

asked 2015-01-04 04:43:42 -0600

tntnet gravatar image

Hi,

I just upgraded to fedora 21 and now my mysql client software can't be compiled any more since "mysql_config --cflags" outputs invalid flags. When using the output as flags to my C++ compiler I get:

g++: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory

and indeed, the "mysql_config --cflags" outputs a option "-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1" and the file is not there. In fedora 20 this option was not there.

Mysql_config is part of mariadb-devel-10.0.14-8.fc21.x86_64. The mysql documentation suggests to use the output to compile mysql client applications: http://dev.mysql.com/doc/refman/5.6/en/c-api-building-clients.html .

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2015-12-07 14:30:18 -0600

markieta gravatar image
sudo dnf install redhat-rpm-config

Source: https://bugs.launchpad.net/openstack-...

edit flag offensive delete link more

Comments

Cannot upvote but - Thanks it works!

ABorserker gravatar imageABorserker ( 2016-03-03 03:38:18 -0600 )edit
1

answered 2015-01-09 23:09:33 -0600

grolin gravatar image

I fix it with: yum install rpm-build.i686

edit flag offensive delete link more

Comments

thanks! this worked for me as well.

elmiko gravatar imageelmiko ( 2015-02-04 14:51:10 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2015-01-04 04:43:42 -0600

Seen: 3,291 times

Last updated: Jan 09 '15