/usr/include/mysql/my_global.h:361:24: error: asm/atomic.h: No such file or directory

When trying to compile php 5.3, if you get this error:

/usr/include/mysql/my_global.h:361:24: error: asm/atomic.h: No such file or directory

Then you can type the following to comment out the include line from the asm/atomic.h from the my_global.h file (it's not required).

perl -pi -e 's#\#include <asm/atomic.h>#//\#include <asm/atomic.h>#' /usr/include/mysql/my_global.h

Then try the php compile again.


Was this article helpful?

mood_bad Dislike 2
mood Like 0
visibility Views: 8162