AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
Expand all | Collapse all

libm not found on AIX 6 - Install Python with gcc

  • 1.  libm not found on AIX 6 - Install Python with gcc

    Posted Wed November 27, 2013 04:25 PM

    Originally posted by: F8BE_ivanelson_nunes


    I'm getting this error when trying to install Python - 2.7.6 :

    in make:

    collect2 : Fatal error : library libm not found

    compilation terminated .

    make: 1254-004 The error code from the last command is 1 .

     

    # gcc -v
    gcc version 4.8.2 ( GCC )
     
    # oslevel - s
    6100-06-06-1140

     

    # My settings :
    export CONFIG_SHELL = /opt/freeware/bin/bash
    export CONFIG_ENV_ARGS = /opt/freeware/bin/bash
    export CC = gcc
    export CFLAGS = " - DSYSV - D_AIX - D_AIX32 - D_AIX41 - D_AIX43 - D_AIX51 - D_AIX52 - D_AIX53 - D_AIX61 - D_ALL_SOURCE - DFUNCPROTO = 15-O -I/opt/freeware/include "
    export CXX = g++
    export CXXFLAGS = $ CFLAGS
    export F77 = xlf
    export fFlags = " - The -I/opt/freeware/include "
    export LD = ld
     export LDFLAGS = " -L/opt/freeware/lib64 -L/opt/freeware/lib \
               -Wl , - blibpath opt/freeware/lib64 :/ :/ opt / freeware / lib :/ usr / lib :/ lib -Wl , - bmaxdata : 0x80000000 "
     
    export PATH=/usr/bin:/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/vac/bin:/usr/vacpp/bin:/usr/ccs/bin:/usr/dt/bin:/usr/opt/perl5/bin:/opt/freeware/bin:/opt/freeware/sbin:/usr/local/bin:/usr/lib/instl
     

    # install python

    # . / configure - prefix = / opt/local/Python-2.7.6
    # make
    # make install

    #AIX-Forum


  • 2.  Re: libm not found on AIX 6 - Install Python with gcc

    Posted Sun December 01, 2013 12:34 PM

    Originally posted by: hdkutz


    Hello,

    just install libm.a LPP Package from Installation Disk.

     

    $ lslpp -w /usr/lib/libm.a
      File                                        Fileset               Type
      ----------------------------------------------------------------------------
      /usr/lib/libm.a                             bos.adt.libm          Symlink
     


    #AIX-Forum