redhat 6.0 编译mysql 和 gtk_MySQL
程序员文章站
2022-05-15 14:29:49
...
Redhat
It said that many functions undefined. You must know that the compiler can't find the defines of them.Then you should add the correct path for the compiler manually, next you will succeed compiled.
But how does it works?Use the command like this: $:gcc -o filename filename.c `pkg-config --cflags --libs gtk+-2.0`.Behind the filename.c we use "the Backward apostrophe"-below the esc key.
MYSQL was also made me confused when I began to compile it.Actually, the Linux operating system was designed by the best hackers in the world. So it designed by a purpose that is user are best programmer.
That means users must configure everything themselves. So you find many errors when using the linux OS, but please don't scare because it can make become a good hacker.
OK, we turn back. In order to compile the programs contained mysql functions, just add the parameter$(mysql_config --cflags --libs). This is a environment variable, you can use command "echo $(mysql_config --cflags --libs)" to check what it is.eg: $: gcc filename.c $(mysql_config --cflags --libs) -o filename
As a Linux programmer, what you do is doing everything yourself. But I don't say Linux is hard to learn.In fact, it is easy to learn.
When I first time compile the gtk programs, it occurred many errors.
It said that many functions undefined. You must know that the compiler can't find the defines of them.Then you should add the correct path for the compiler manually, next you will succeed compiled.
But how does it works?Use the command like this: $:gcc -o filename filename.c `pkg-config --cflags --libs gtk+-2.0`.Behind the filename.c we use "the Backward apostrophe"-below the esc key.
MYSQL was also made me confused when I began to compile it.Actually, the Linux operating system was designed by the best hackers in the world. So it designed by a purpose that is user are best programmer.
That means users must configure everything themselves. So you find many errors when using the linux OS, but please don't scare because it can make become a good hacker.
OK, we turn back. In order to compile the programs contained mysql functions, just add the parameter$(mysql_config --cflags --libs). This is a environment variable, you can use command "echo $(mysql_config --cflags --libs)" to check what it is.eg: $: gcc filename.c $(mysql_config --cflags --libs) -o filename
As a Linux programmer, what you do is doing everything yourself. But I don't say Linux is hard to learn.In fact, it is easy to learn.
推荐阅读
-
MySQL 事务预编译查询和Perl DBI简化_MySQL
-
CentOS下PHP7的编译安装及MySQL的支持和一些常见问题的解决办法
-
Linux下安装mysql的方式(yum和源码编译两种方式)
-
Linux下安装mysql(yum和源码编译两种方式)
-
Mysql 介绍和编译安装
-
使用ffmpeg sdk v3.2和vc6.0编译output
-
Slaris10系统下编译安装apache2、mysql5和php5_PHP教程
-
CentOS下PHP7的编译安装及MySQL的支持和一些常见问题的解决办法_php实例
-
CentOS 6.0 编译安装 MySQL 5.5.17_MySQL
-
CentOS下PHP7的编译安装及MySQL的支持和一些常见问题的解决办法_php实例