mx Base module

Discussion in 'Python' started by Manu, Feb 25, 2008.

  1. Manu

    Manu Guest

    Hi there,

    I am trying to install mx Base module( http://www.egenix.com/products/python/mxBase/
    ) on my Redhat server. But om executing command "python setup.py
    install" I get following messages:

    running install
    running build
    running mx_autoconf
    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-
    prototypes -fPIC -D_GNU_SOURCE=1 -I/usr/local/include -c _configtest.c
    -o _configtest.o
    _configtest.c: In function 'main':
    _configtest.c:4: warning: statement with no effect
    gcc -pthread _configtest.o -L/usr/local/lib -L/usr/local/lib64 -o
    _configtest
    success!
    removing: _configtest.c _configtest.o _configtest
    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-
    prototypes -fPIC -D_GNU_SOURCE=1 -I/usr/local/include/python2.5 -I/usr/
    local/include -c _configtest.c -o _configtest.o
    success!
    removing: _configtest.c _configtest.o
    macros to define: [('HAVE_STRPTIME', '1')]
    macros to undefine: []
    running build_ext

    building extension "mx.DateTime.mxDateTime.mxDateTime" (required)
    building 'mx.DateTime.mxDateTime.mxDateTime' extension
    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-
    prototypes -fPIC -DUSE_FAST_GETCURRENTTIME -DHAVE_STRPTIME=1 -Imx/
    DateTime/mxDateTime -I/usr/local/include/python2.5 -I/usr/local/
    include -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.linux-
    x86_64-2.5_ucs2/mx-DateTime-mxDateTime-mxDateTime/mx/DateTime/
    mxDateTime/mxDateTime.o
    gcc: mx/DateTime/mxDateTime/mxDateTime.c: No such file or directory
    gcc: no input files
    error: command 'gcc' failed with exit status 1

    I am able to import mx but not mx.TextTools or mx.DateTime.

    Please help to install this module.

    Thanks in advance
    M
     
    Manu, Feb 25, 2008
    #1
    1. Advertising

  2. On 2008-02-25 17:27, Manu wrote:
    > Hi there,
    >
    > I am trying to install mx Base module( http://www.egenix.com/products/python/mxBase/
    > ) on my Redhat server. But om executing command "python setup.py
    > install"


    The file you downloaded is a prebuilt binary. For those, you
    have to use:

    python setup.py build --skip install

    Prebuilt binaries are similar to Python eggs in that they do
    not require a compiler. Unlike eggs, they give you full advantage
    of the distutils install command and all its options.

    http://www.egenix.com/products/python/mxBase/#Installation

    > I get following messages:
    >
    > running install
    > running build
    > running mx_autoconf
    > gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-
    > prototypes -fPIC -D_GNU_SOURCE=1 -I/usr/local/include -c _configtest.c
    > -o _configtest.o
    > _configtest.c: In function 'main':
    > _configtest.c:4: warning: statement with no effect
    > gcc -pthread _configtest.o -L/usr/local/lib -L/usr/local/lib64 -o
    > _configtest
    > success!
    > removing: _configtest.c _configtest.o _configtest
    > gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-
    > prototypes -fPIC -D_GNU_SOURCE=1 -I/usr/local/include/python2.5 -I/usr/
    > local/include -c _configtest.c -o _configtest.o
    > success!
    > removing: _configtest.c _configtest.o
    > macros to define: [('HAVE_STRPTIME', '1')]
    > macros to undefine: []
    > running build_ext
    >
    > building extension "mx.DateTime.mxDateTime.mxDateTime" (required)
    > building 'mx.DateTime.mxDateTime.mxDateTime' extension
    > gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-
    > prototypes -fPIC -DUSE_FAST_GETCURRENTTIME -DHAVE_STRPTIME=1 -Imx/
    > DateTime/mxDateTime -I/usr/local/include/python2.5 -I/usr/local/
    > include -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.linux-
    > x86_64-2.5_ucs2/mx-DateTime-mxDateTime-mxDateTime/mx/DateTime/
    > mxDateTime/mxDateTime.o
    > gcc: mx/DateTime/mxDateTime/mxDateTime.c: No such file or directory
    > gcc: no input files
    > error: command 'gcc' failed with exit status 1
    >
    > I am able to import mx but not mx.TextTools or mx.DateTime.
    >
    > Please help to install this module.
    >
    > Thanks in advance
    > M


    --
    Marc-Andre Lemburg
    eGenix.com

    Professional Python Services directly from the Source (#1, Feb 25 2008)
    >>> Python/Zope Consulting and Support ... http://www.egenix.com/
    >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
    >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/

    ________________________________________________________________________

    :::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for free ! ::::


    eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48
    D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
    Registered at Amtsgericht Duesseldorf: HRB 46611
     
    M.-A. Lemburg, Feb 25, 2008
    #2
    1. Advertising

  3. Manu

    Manu Guest

    Many thanx for your help
    python setup.py build --skip install command is working

    Thanks Once again

    M


    On Feb 25, 5:08 pm, "M.-A. Lemburg" <> wrote:
    > On 2008-02-25 17:27, Manu wrote:
    >
    > > Hi there,

    >
    > > I am trying to install mx Base module(http://www.egenix.com/products/python/mxBase/
    > > ) on my Redhat server. But om executing command "python setup.py
    > > install"

    >
    > The file you downloaded is a prebuilt binary. For those, you
    > have to use:
    >
    > python setup.py build --skip install
    >
    > Prebuilt binaries are similar to Python eggs in that they do
    > not require a compiler. Unlike eggs, they give you full advantage
    > of the distutils install command and all its options.
    >
    > http://www.egenix.com/products/python/mxBase/#Installation
    >
    >
    >
    > > I get following messages:

    >
    > > running install
    > > running build
    > > running mx_autoconf
    > > gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-
    > > prototypes -fPIC -D_GNU_SOURCE=1 -I/usr/local/include -c _configtest.c
    > > -o _configtest.o
    > > _configtest.c: In function 'main':
    > > _configtest.c:4: warning: statement with no effect
    > > gcc -pthread _configtest.o -L/usr/local/lib -L/usr/local/lib64 -o
    > > _configtest
    > > success!
    > > removing: _configtest.c _configtest.o _configtest
    > > gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-
    > > prototypes -fPIC -D_GNU_SOURCE=1 -I/usr/local/include/python2.5 -I/usr/
    > > local/include -c _configtest.c -o _configtest.o
    > > success!
    > > removing: _configtest.c _configtest.o
    > > macros to define: [('HAVE_STRPTIME', '1')]
    > > macros to undefine: []
    > > running build_ext

    >
    > > building extension "mx.DateTime.mxDateTime.mxDateTime" (required)
    > > building 'mx.DateTime.mxDateTime.mxDateTime' extension
    > > gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-
    > > prototypes -fPIC -DUSE_FAST_GETCURRENTTIME -DHAVE_STRPTIME=1 -Imx/
    > > DateTime/mxDateTime -I/usr/local/include/python2.5 -I/usr/local/
    > > include -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.linux-
    > > x86_64-2.5_ucs2/mx-DateTime-mxDateTime-mxDateTime/mx/DateTime/
    > > mxDateTime/mxDateTime.o
    > > gcc: mx/DateTime/mxDateTime/mxDateTime.c: No such file or directory
    > > gcc: no input files
    > > error: command 'gcc' failed with exit status 1

    >
    > > I am able to import mx but not mx.TextTools or mx.DateTime.

    >
    > > Please help to install this module.

    >
    > > Thanks in advance
    > > M

    >
    > --
    > Marc-Andre Lemburg
    > eGenix.com
    >
    > Professional Python Services directly from the Source (#1, Feb 25 2008)>>> Python/Zope Consulting and Support ... http://www.egenix.com/
    > >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
    > >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/

    >
    > ________________________________________________________________________
    >
    > :::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for free ! ::::
    >
    > eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48
    > D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
    > Registered at Amtsgericht Duesseldorf: HRB 46611
     
    Manu, Feb 25, 2008
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.

Share This Page