Forums

F.A.Q. F.A.Q.    Register Register    Login Login    Home Home
Search Search
SBML Discussions » sbml-interoperability » problems in installing libsbml3.0.0
Show: Today's Posts  :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
AuthorTopic
Padma.P


Posts: 3
Location:
India
Registered:
September 2007
problems in installing libsbml3.0.0 02 Sep '07 22:42 Go to next message

hi all...

I am facing following problems while installing libsbml3.0.0 in ubuntu6

libsbml3.0.0 has been configured with
############
./configure --with-swig --with-java=/usr/local/jdk1.6.0_02/ --with-perl --with-python
############
no errors found...

but after...."make" following errors have been found....in libsbml_wrap.cpp upto
-------------------------------------------------------------------
libsbml_wrap.cpp:63612: error: ‘SWIG_Python_SetConstant’ cannot be used as a function
libsbml_wrap.cpp:63613: error: ‘SWIG_Python_SetConstant’ cannot be used as a function
libsbml_wrap.cpp:63614: error: ‘SWIG_Python_SetConstant’ cannot be used as a function
libsbml_wrap.cpp:63615: error: ‘SWIG_Python_SetConstant’ cannot be used as a function
libsbml_wrap.cpp:63616: error: ‘SWIG_Python_SetConstant’ cannot be used as a function
libsbml_wrap.cpp: In constructor ‘swig::PySwigIterator_T<OutIterator>::PySwigIterator_T(OutIterator, int*) [with OutIterator = __gnu_cxx::__normal_iterator<char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >]’:
libsbml_wrap.cpp:3935: instantiated from ‘swig::PySwigIteratorClosed_T<OutIterator, ValueType, FromOper>::PySwigIteratorClosed_T(OutIterator, OutIterator, OutIterator, int*) [with OutIterator = __gnu_cxx::__normal_iterator<char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, ValueType = char, FromOper = swig::from_oper<char>]’
libsbml_wrap.cpp:3985: instantiated from ‘swig::PySwigIterator* swig::make_output_iterator(const OutIter&, const OutIter&, const OutIter&, int*) [with OutIter = __gnu_cxx::__normal_iterator<char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >]’
libsbml_wrap.cpp:4230: instantiated from here
libsbml_wrap.cpp:3834: error: no matching function for call to ‘swig::PySwigIterator::PySwigIterator(int*&)’
libsbml_wrap.cpp:2765: note: candidates are: swig::PySwigIterator::PySwigIterator(const swig::PySwigIterator&)
libsbml_wrap.cpp:2765: note: swig::PySwigIterator::PySwigIterator()
make[3]: *** [libsbml_wrap.o] Error 1
make[3]: Leaving directory `/home/padma/downloads/libsbml-3.0.0/src/bindings/python'
make[2]: *** [python-recurse] Error 2
make[2]: Leaving directory `/home/padma/downloads/libsbml-3.0.0/src/bindings'
make[1]: *** [bindings-recurse] Error 2
make[1]: Leaving directory `/home/padma/downloads/libsbml-3.0.0/src'
make: *** [src-recurse] Error 2
----------------------------------------------------------------

can anyone suggest how to rectify this error to install libsbml..

thanks in advance

Padma.P

      
Mike Hucka


Posts: 961
Registered:
October 2003
Re: problems in installing libsbml3.0.0 03 Sep '07 00:10 Go to previous messageGo to next message

Hi,

Two ideas come to mind:

1. How did you obtain the sources in this case? If you used
CVS and you had a previous (older) copy of the sources in
the same directory (even a prerelease of 3.0), then try
deleting the _wrap.cpp file in the python directory. I'm
afraid there is a bug in the make system that prevents it
from remaking the _wrap.cpp file at the right time based
on the dependencies. This only happens when an older
libsbml_wrap.cpp file is in the directory. If you
downloaded the fresh 3.0.0 sources, this shouldn't be a
problem because the download contains an up-to-date
version of the swig-generated wrapper file.

2. Is it possible your version of swig is older that 1.3.31?
Libsbml's configure program should complain about it and
refuse to continue, but maybe it failed to do that and
let the configuration continue.

Let us know about the above, and we'll try to continue
helping from there.

MH

--
Mike Hucka, Ph.D. mhucka@caltech.edu http://bnmc.caltech.edu
Senior Research Fellow, Control and Dynamical Systems
Co-director, Biological Network Modeling Center (BNMC)
Beckman Institute @ the California Institute of Technology

____________________________________________________________
To manage your libsbml-discuss list subscription, visit
https://utils.its.caltech.edu/mailman/listinfo/libsbml-discuss

For a web interface to the libsbml-discuss mailing list, visit
http://sbml.org/forums/

For questions or feedback about the libsbml-discuss list,
contact sbml-team@caltech.edu.

      
Padma.P


Posts: 3
Location:
India
Registered:
September 2007
Re: problems in installing libsbml3.0.0 03 Sep '07 04:15 Go to previous messageGo to next message

Hi Mike,
thank you for your reply...we have tried the things as you suggested ..

1.libsbml is the new release version of 3.0.0 from SourceForge.net.we've removed the previous copies and started installing again. After configuring,we got the same error.

As you said,libsbml_wrap.cpp has been removed from src/bindings/python and then again configured,but still getting the same error as above..

It seems the _wrap.cpp file has been generated automatically while "make"

2.Previously we have older version of swig and after that we got the new version on saturday from SourceForge.net and it is SWIG Version 1.3.31 with gcc compilor version :- gcc(GCC) 4.0.3..

the previous post is after the new version of swig...


any help is appreciated..

      
Mike Hucka


Posts: 961
Registered:
October 2003
Re: problems in installing libsbml3.0.0 04 Sep '07 22:52 Go to previous message

pammy_choudary> 1.libsbml is the new release version of
pammy_choudary> 3.0.0 from SourceForge.net.we've removed
pammy_choudary> the previous copies and started installing
pammy_choudary> again. After configuring,we got the same
pammy_choudary> error.
pammy_choudary>
pammy_choudary> As you said,libsbml_wrap.cpp has been
pammy_choudary> removed from src/bindings/python and then
pammy_choudary> again configured,but still getting the
pammy_choudary> same error as above..
pammy_choudary>
pammy_choudary> It seems the _wrap.cpp file has been
pammy_choudary> generated automatically while "make"
pammy_choudary>
pammy_choudary> 2.Previously we have older version of swig
pammy_choudary> and after that we got the new version on
pammy_choudary> saturday from SourceForge.net and it is
pammy_choudary> SWIG Version 1.3.31 with gcc compilor
pammy_choudary> version :- gcc(GCC) 4.0.3..

Sorry to take so long to get back to this; blame it on
organizing ICSB 2007.

I'm kind of stumped on this. I can't reproduce the error
under MacOS or Linux Red Hat 5, nor can Sarah Keating under
Windows.

Maybe the problem is python. What is the version of python
you are running?

Aside from that, if you could email me your config.status
file (it should have been created at left in your top-level
libsbml directory)? No need to post it to the list, just
email me at mhucka @ caltech.edu.

MH

____________________________________________________________
To manage your libsbml-discuss list subscription, visit
https://utils.its.caltech.edu/mailman/listinfo/libsbml-discuss

For a web interface to the libsbml-discuss mailing list, visit
http://sbml.org/forums/

For questions or feedback about the libsbml-discuss list,
contact sbml-team@caltech.edu.

      
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic:SBMLtoolbox: new version
Next Topic:problem with getNumFatals()
Go to forum:
-=] Back to Top [=-

Powered by FUDforum. (Copyright Advanced Internet Designs Inc.)

Please use our issue tracking system for any questions or suggestions about this website.