Installing TPP 5.1.0 on RHEL 7 gives error

106 views
Skip to first unread message

Monica HPC

unread,
Feb 14, 2018, 1:48:06 PM2/14/18
to spctools-discuss
Hi there!

I am trying to install the newer version of TPP 5.1.0 on RedHat Enterprise Linux 7 server and I am getting the following error and warning after running `make install`.

I have installed all the prerequite libraries mentioned in the BUILD_LINUX documentation:
libgd2
libpng
zlib
libbz2

WARNING:

TPP/5.1.0/TPP_5.1.0-src/build/linux-x86_64/include/boost/config/compiler/gcc.hpp:205:0: warning: "BOOST_NO_CXX11_SCOPED_ENUMS" redefined [enabled by default]

 #  define BOOST_NO_CXX11_SCOPED_ENUMS

 ^


ERROR:

TPP/5.1.0/TPP_5.1.0-src/src/Parsers/mzIMLTools/CProteinAmbiguityGroup.cpp:106:69: error: cannot pass objects of non-trivially-copyable type ‘std::string {aka class std::basic_string<char>}’ through ‘...’

   sprintf(dbid, "%s_%d", baseRef, proteinDetectionHypothesis->size());


Am I missing something or is it a bug in the code?


Please do let me know if there is any workaround to fix this issue.


Thanks,

Monica

Michael Hoopmann

unread,
Feb 14, 2018, 6:04:12 PM2/14/18
to spctools...@googlegroups.com

Hi Monica,

Thanks for reporting the bug. I have a fix for the source tree, but sourceforge is having problems right now. You can add the fix manually, though, by going into CProteinAmbiguityGroup.cpp and changing:

 

sprintf(dbid, "%s_%d", baseRef, proteinDetectionHypothesis->size());

 

 

to

 

sprintf(dbid, "%s_%d", &baseRef[0], proteinDetectionHypothesis->size());

 

 

Cheers,

Mike

 

--
You received this message because you are subscribed to the Google Groups "spctools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spctools-discu...@googlegroups.com.
To post to this group, send email to spctools...@googlegroups.com.
Visit this group at https://groups.google.com/group/spctools-discuss.
For more options, visit https://groups.google.com/d/optout.

Monica HPC

unread,
Feb 20, 2018, 12:26:57 PM2/20/18
to spctools-discuss
Hi Mike,

Thanks for your response. This error is gone after the sprintf change you suggested but I now get the following error and couple of warnings when I run `make install`.

Error:

TPP/5.1.0/TPP_5.1.0-src/src/Quantitation/XPress/XPressPeptideUpdateParser/XPressPeptideUpdateParserMain.cpp:47:16: fatal error: gd.h: No such file or directory

 #include "gd.h"

                ^

compilation terminated.


Warnings:

warning: "BOOST_NO_CXX11_SCOPED_ENUMS" redefined [enabled by default]


and 


TPP/5.1.0/TPP_5.1.0-src/src/Parsers/mzIMLTools/mzIMLDemo/PepXMLParser3.cpp:363:43: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]

         mod.massStd=calcMonoMass("E",false)-18.0105633;


Regards,

Monica

Joshua Dunham

unread,
Feb 21, 2018, 11:09:53 AM2/21/18
to spctools-discuss
I believe you need to have libgd2 (or libgd2-dev) installed. 

J
Reply all
Reply to author
Forward
0 new messages