FreeBSD Installation Issue

Help
2010-12-22
2012-09-19
  • Jacob Fooks
    Jacob Fooks
    2010-12-22

    I am trying to install on a FreeBSD machine and am getting an getting an error
    that has me somewhat perplexed. The output is:

    running build_ext
    building '_mysql' extension
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -Dversion_info=(1,2,3,'final',0) -D__version__=1.2.3 -I/usr/local/mysql/include/mysql -I/usr/local/include/python2.7 -c _mysql.c -o build/temp.freebsd-8.1-RELEASE-amd64-2.7/_mysql.o
    gcc -pthread -shared ${LDFLAGS} build/temp.freebsd-8.1-RELEASE-amd64-2.7/_mysql.o -L/usr/local/mysql/lib/mysql -lmysqlclient_r -lz -lcrypt -lm -o build/lib.freebsd-8.1-RELEASE-amd64-2.7/_mysql.so
    gcc: ${LDFLAGS}: No such file or directory
    error: command 'gcc' failed with exit status 1
    

    I am using FreeBSD 4.8, Python 2.7.1, and MySQL 4.0.25. If anyone could point
    me in the general direction of some useful info on this it would be
    appreciated.