Problem in installing Mothur on Mac

I just got an new macbook pro with 4G RAM. I tried to install Mothur using the following options in makefile

CC_OPTIONS = -O3 -arch x86_64
LNK_OPTIONS = -arch x86_64

and at the end of installation I received several lines of errors as this

Undefined symbols:
“std::basic_ofstream<char, std::char_traits >::~basic_ofstream()”, referenced from:
TreeGroupCommand::~TreeGroupCommand()in treegroupscommand.o
TreeGroupCommand::~TreeGroupCommand()in treegroupscommand.o
TreeGroupCommand::~TreeGroupCommand()in treegroupscommand.o
TreeGroupCommand::~TreeGroupCommand()in treegroupscommand.o
TreeGroupCommand::TreeGroupCommand(std::basic_string<char, std::char_traits, std::allocator >)in treegroupscommand.o
GetOTURepCommand::GetOTURepCommand(std::basic_string<char, std::char_traits, std::allocator >)in getoturepcommand.o
ScreenSeqsCommand::screenGroupFile(std::set<std::basic_string<char, std::char_traits, std::allocator >, std::less<std::basic_string<char, std::char_traits, std::allocator > >, std::allocator<std::basic_string<char, std::char_traits, std::allocator > > >)in screenseqscommand.o

Is there something else I should change in the makefile as well? When installing with the default makefile there was no problem.

best,
Jenni

I got it to compile with the following in the makefile:

CC = g++
CC_OPTIONS = -O3 -arch x86_64

if you do not want to use the readline library set to no, default yes.

make sure you have the library installed

USEREADLINE ?= yes

ifeq ($(strip $(USEREADLINE)),yes)
CC_OPTIONS += -DUSE_READLINE
LNK_OPTIONS =
-lreadline
-L…/readline-6.0
-arch x86_64
endif