Hi everybody!
I have a similar problem, I have been used mothur on my ubuntu, but recently I updated to 11.10 distribution and my mothur didn’t work. when I tried to use unique.seqs(fasta=file) appears: “Error in reading your fastafile, at position -1. Blank name”. I checked my fasta file and it doesn’t have any problem.
I remove the mothur folder and I tried to reinstall it , and I am having the same problem any time I tried something new. I think is something about the C compiler in the new ubuntu, but I can´t figure how to solve it since I am a Linux newbie.
This is my makefile
################################################################################################################################################
USEMPI ?= no
64BIT_VERSION ?= yes
USEREADLINE ?= yes
CYGWIN_BUILD ?= no
USECOMPRESSION ?= no
MOTHUR_FILES="“Enter_your_default_path_here”"
RELEASE_DATE = "“10/18/2011"”
VERSION = "“1.22.0"”
Optimize to level 3:
CXXFLAGS += -O3
ifeq ($(strip $(64BIT_VERSION)),yes)
#if you are using centos uncomment the following lines
#CXX = g++44
#if you are a mac user use the following line
#TARGET_ARCH += -arch x86_64
#if you using cygwin to build Windows the following line
#CXX = x86_64-w64-mingw32-g++
#CC = x86_64-w64-mingw32-g++
#TARGET_ARCH += -m64
#if you are a linux user use the following line
CXXFLAGS += -mtune=native -march=native -m64
CXXFLAGS += -DBIT_VERSION
endif
CXXFLAGS += -DRELEASE_DATE=${RELEASE_DATE} -DVERSION=${VERSION}
ifeq ($(strip $(MOTHUR_FILES)),"“Enter_your_default_path_here”")
else
CXXFLAGS += -DMOTHUR_FILES=${MOTHUR_FILES}
endif
ifeq ($(strip $(CYGWIN_BUILD)),yes)
CXXFLAGS += -mno-cygwin
LDFLAGS += -mno-cygwin
endif
if you do not want to use the readline library, set this to no.
make sure you have the library installed
ifeq ($(strip $(USEREADLINE)),yes)
CXXFLAGS += -DUSE_READLINE
LIBS = \
-lreadline\
-lncurses
endif
ifeq ($(strip $(USEMPI)),yes)
CXX = mpic++
CXXFLAGS += -DUSE_MPI
endif
if you want to enable reading and writing of compressed files, set to yes.
The default is no. this may only work on unix-like systems, not for windows.
ifeq ($(strip $(USECOMPRESSION)),yes)
CXXFLAGS += -DUSE_COMPRESSION
endif
INCLUDE directories for mothur
CXXFLAGS += -I.
Get the list of all .cpp files, rename to .o files
OBJECTS=$(patsubst %.cpp,%.o,$(wildcard *.cpp))
OBJECTS+=$(patsubst %.c,%.o,$(wildcard *.c))
mothur : $(OBJECTS) uchime
$(CXX) $(LDFLAGS) $(TARGET_ARCH) -o $@ $(OBJECTS) $(LIBS)
strip mothur
uchime:
cd uchime_src && ./mk && mv uchime … && cd …
install : mothur
%.o : %.c %.h
$(COMPILE.c) $(OUTPUT_OPTION) $<
%.o : %.cpp %.h
$(COMPILE.cpp) $(OUTPUT_OPTION) $<
%.o : %.cpp %.hpp
$(COMPILE.cpp) $(OUTPUT_OPTION) $<
clean :
@rm -f $(OBJECTS)
@rm -f uchime
################################################################################################################################################
I have this programs installed on my computer
g++ version 4:4.6.1-2ubuntu5
g+±4.6
g+±4.6 multilib
g+± multilib
gcc-4.6-doc
gcc-doc
libstdc++6
libstdc++6-4.6-dev
cpp version 4:4.6.1-2ubuntu5
cpp-4.6
######################################################
I hope you could help me, I will be very happy in use again my dear mothur program.
Fabiola