Showing posts with label compiler. Show all posts
Showing posts with label compiler. Show all posts

Wednesday, November 19, 2014

Problem troubleshooted while installing Phylobayes on Mavericks by LM Davalos:

Problem: Parallel phylobayes (pb_mpi1.5a) does not compile from source on multi-processor mac running OS 10.9. After clearing out any errors having to do with open-mpi, these errors persist:

file BP2util.h
shell: fatal error: 'tr1/unordered_map' file not found
#include <tr1/unordered_map>

original #include <tr1/unordered_map> #tr1 is deprecated in 10.9 and will not compile
modified: #include <unordered_map>

shell: error: use of undeclared identifier 'tr1'
original: class BipartitionHashTable : public tr1::unordered_map<string,T> {};
modified: class BipartitionHashTable : public unordered_map<string,T> {};

file BP2Stat.h
shell: fatal error: 'tr1/unordered_map' file not found
#include <tr1/unordered_map>

original: #include <tr1/unordered_map>
modified: #include <unordered_map>
#define hash_map std::unordered_map

file PolyNode.cpp
shell: error: variable length array of non-POD element type 'string'
original:  string retval[degree]; #line 431
modified:  string *retval = new string[degree]; #line 431

Wednesday, January 16, 2013

Installing compiler on mac (for the millionth time!!)
http://www.mkyong.com/mac/how-to-install-gcc-compiler-on-mac-os-x/

To install DIVA-GIS
-Installed WineBottler
-To get WineBottler to work--had to install wget command: http://www.mactricksandtips.com/2008/07/installing-wget-on-your-mac-for-terminal.html
-WineBottler was missing WineTricks to install missing libraries with DIVA-GIS: http://code.google.com/p/winetricks/wiki/Installing
NEVERMIND--gave up on this. Could never figure out how to install the two missing libraries in winetricks in order for WineBottler to run properly.
--ended up installing DIVA-GIS on PC for now.

Setting up data for DIVA-GIS and maxent
http://www.bioversityinternational.org/fileadmin/bioversity/publications/pdfs/1431_Training_manual_on_spatial_analysis_of_plant_diversity_and_distribution.final.pdf

------------------------------------------
Running this in R.

Import data point

file name: "C:/PROGRA~1/R/R-211~1.1/library/dismo/ex/garrulax_chinensis_all.csv"

#plot map of SE asia
plot(wrld_simpl, xlim=c(80-110), ylim=c(-20,30) axes=TRUE,col='light yellow')


------------------------------------------
What I want my paper to be like:
http://www.plosone.org/article/info%3Adoi%2F10.1371%2Fjournal.pone.0009612
and maybe this:
http://phylodiversity.net/fslik/index_files/BiolCon2012.pdf