Menu

#7 Build error under Linux

open
None
4
2004-08-19
2004-04-21
Anonymous
No

There are two errors when building PNL beta 2.0 under
Linux:
1.) make creates the same directories over and over
again, for approximately 20 iterations.
2.) configure.gcc ignores the --prefix option.
Installing in other places than /usr/local/ is
impossible. Thus, installing without root priviledges
is impossible. (In the unix world it's quite common
that users are not logged in as administrators or even
don't have the priviledges to do so.)

Matthias

Discussion

  • Michael Kane

    Michael Kane - 2004-04-21

    Logged In: YES
    user_id=1010505

    Which directories are being created over and over?

    Second, if you do not have permission to write to a directory
    you will not be able to install an application in that directory.
    Are you sure you have permission to the directory you are
    trying to install to?

     
  • Nobody/Anonymous

    Logged In: NO

    Here is the new version of configure.gcc file I suggest :

    #!/bin/bash
    tar xjf conf.gcc.tbz 2>/dev/null
    rm -f libtool
    sh ./configure $@
    echo "run 'make' to compile sources"

    And also configure.icc :

    #!/bin/bash
    tar xjf conf.icc.tbz 2>/dev/null
    rm -f libtool
    CC=icc
    CXX=icpc
    export CC CXX
    sh ./configure $@
    sed 's/predep_objects="\/.*$/predep_objects=""/' libtool
    >libtool.ed
    mv -f libtool.ed libtool
    echo "run 'make' to compile sources"

    I add $@ that gives arguments passed to configure.(i|g)cc to
    configure.

    This way the argument --prefix=your_favorite_install_dir
    could be passed to configure. Before, pnl was always
    install the default way.

     
  • Sergey Molinov

    Sergey Molinov - 2004-08-19
    • priority: 5 --> 4
    • assigned_to: nobody --> trvs
     

Log in to post a comment.

MongoDB Logo MongoDB