Find the answer to your Linux question:
Results 1 to 9 of 9
Dear ALL:- please help me, i spent more than month trying to install this FLENS, please guide me, im incredibly new to ubuntu.i'm in need of installing flens. that is ...
  1. #1
    Just Joined!
    Join Date
    Nov 2009
    Posts
    6

    Series of problems in compiling a source file (FLENS)

    Dear ALL:-
    please help me, i spent more than month trying to install this FLENS, please guide me, im incredibly new to ubuntu.i'm in need of installing flens.

    that is what i did to install flens
    i installed the dependencies by this line, (blas and lapack packages names were changed, thanks to Paul)
    moha at ubuntu:~/FLENS-2009-06-12$ sudo apt-get install libatlas-base-dev liblapack-pic libblas-dev

    then i changed the config file to be like that
    --------------------------
    CXX = g++
    CXXFLAGS += -Wall -Wextra -Werror -g -O0 -fPIC
    INCDIRS += -I.
    DYLIB_EXT = so
    CXXDYLIB = -shared
    LDFLAGS += -libatlas-base-dev -liblapack-pic -libblas-dev
    --------------------------
    do i have to change anything in it ??

    when i tried to ./configure, that is what got
    moha at ubuntu:~/FLENS-2009-06-12$ ./configure
    bash: ./configure: No such file or directory
    <put in my mind that i have only one folder called config in the FLENS-2009-06-12 folder>

    when i tried to excute this line in terminal, i got no responce
    export LD_LIBRARY_PATH=/home/moha/FLENS-2009-06-12:$LD_LIBRARY_PATH
    i also added the slash before colon
    export LD_LIBRARY_PATH=/home/moha/FLENS-2009-06-12:$LD_LIBRARY_PATH
    and the terminal just do this
    moha at ubuntu:~/FLENS-2009-06-12$ export LD_LIBRARY_PATH=/home/moha/FLENS-2009-06-12:$LD_LIBRARY_PATH
    moha at ubuntu:~/FLENS-2009-06-12$

    what is the problem ?!

    i succeded to "make" the file
    i got no errors ,
    somebody told me that i have to "./config" first , but when i wrote that at terminal, that is what i got
    moha at ubuntu:~/FLENS-2009-06-12$ ./config
    bash: ./config: Permission denied
    moha at ubuntu:~/FLENS-2009-06-12$ sudo ./config
    sudo: ./config: command not found

    now i cant "make install"
    im incredibly confused,
    what should i do ?

    Thanks on advance

  2. #2
    Linux Guru waterhead's Avatar
    Join Date
    Jul 2004
    Location
    Franklin, Wisconsin
    Posts
    4,577
    Did you read the installation instructions at the FLENS web site?

    FLENS - Obtain

    It says to run the config file that matches your distro. When I ran it on Ubuntu 9.04, all I got is errors. I didn't install any of the needed prerequisites either.
    Code:
    $ ./config.ubuntu
    ./config.ubuntu: line 1: CXX: command not found
    ./config.ubuntu: line 2: CXXFLAGS: command not found
    ./config.ubuntu: line 3: INCDIRS: command not found
    ./config.ubuntu: line 4: DYLIB_EXT: command not found
    ./config.ubuntu: line 5: CXXDYLIB: command not found
    ./config.ubuntu: line 6: LDFLAGS: command not found
    Running it withsudo changed the error, slightly.
    Code:
    $ sudo ./config.ubuntu
    [sudo] password for paul: 
    ./config.ubuntu: 1: CXX: not found
    ./config.ubuntu: 2: CXXFLAGS: not found
    ./config.ubuntu: 3: INCDIRS: not found
    ./config.ubuntu: 4: DYLIB_EXT: not found
    ./config.ubuntu: 5: CXXDYLIB: not found
    ./config.ubuntu: 6: LDFLAGS: not found
    What do you get? You may need to customize the config.ubuntu file to show the correct info.
    Paul

    Please do not send Private Messages to me with requests for help. I will not reply.

  3. #3
    Linux Guru waterhead's Avatar
    Join Date
    Jul 2004
    Location
    Franklin, Wisconsin
    Posts
    4,577
    OK, I think that I have made some progress for you. I installed the prerequisites first, so that I can test it for you.

    I then found that the config.ubuntu file is not a script to be run. You should make any changes to it that you think you need (I left it as is), then save it as config (without the .ubuntu suffix). Then just run the make command.

    I did this, and it is now compiling on my little Eee PC

    Edit:
    By the way, these are the packages that I install before compiling.

    libatlas-base-dev (3.6.0-22ubuntu2)
    libatlas-headers (3.6.0-22ubuntu2)
    libatlas3gf-base (3.6.0-22ubuntu2)
    libblas-dev (1.2-2)
    liblapack-dev (3.1.1-6)
    liblapack-pic (3.1.1-6)
    Paul

    Please do not send Private Messages to me with requests for help. I will not reply.

  4. #4
    Linux Guru waterhead's Avatar
    Join Date
    Jul 2004
    Location
    Franklin, Wisconsin
    Posts
    4,577
    Now that I have compiled it, installing it gives me errors similar to yours:
    Code:
    $ sudo make install
    [sudo] password for paul: 
    Makefile.common:19: /config: No such file or directory
    make: *** No rule to make target `/config'.  Stop.
    And running ./config gives me the same errors as before, as it isn't suppose to be run like a script. I looked at the file/line that it was complaining about: Makefile.common:19. It is a path, so I replaced it with the path to the folder where I am compiling FLENS, but left the /config at the end. Then when I ran sudo make install I got this:
    Code:
    $ sudo make install
    make: `install' is up to date.
    That's not an error, but is FLENS installed? I guess that I really haven't been much help.
    Paul

    Please do not send Private Messages to me with requests for help. I will not reply.

  5. #5
    Just Joined!
    Join Date
    Nov 2009
    Posts
    6
    Quote Originally Posted by waterhead View Post
    Now that I have compiled it, installing it gives me errors similar to yours:
    Code:
    $ sudo make install
    [sudo] password for paul: 
    Makefile.common:19: /config: No such file or directory
    make: *** No rule to make target `/config'.  Stop.
    And running ./config gives me the same errors as before, as it isn't suppose to be run like a script. I looked at the file/line that it was complaining about: Makefile.common:19. It is a path, so I replaced it with the path to the folder where I am compiling FLENS, but left the /config at the end. Then when I ran sudo make install I got this:
    Code:
    $ sudo make install
    make: `install' is up to date.
    That's not an error, but is FLENS installed? I guess that I really haven't been much help.
    Dear Paul
    I'm really thankful to you, really really thankful to your help.
    I could solve the problem with this
    sudo checkinstall
    it made .deb file and installed fortunatelly :d
    but the question now is, Is flens really installed ?
    (make is done without changing makfile.common)
    this is the terminal o/p:-
    ----------------------
    moha@ubuntu:~/FLENS-2009-06-12$ make

    FLENS_HOME=/home/moha/FLENS-2009-06-12


    processing dir flens:

    make[1]: Entering directory `/home/moha/FLENS-2009-06-12/flens'
    g++ -shared -Wall -Wextra -Werror -g -O0 -fPIC -o libflens.so .obj/*.o -libatlas-base-dev -liblapack-pic -libblas-dev
    /usr/bin/ld: cannot find -libatlas-base-dev
    collect2: ld returned 1 exit status
    make[1]: *** [all] Error 1
    make[1]: Leaving directory `/home/moha/FLENS-2009-06-12/flens'

    processing dir tutorials:

    make[1]: Entering directory `/home/moha/FLENS-2009-06-12/tutorials'
    make[1]: Nothing to be done for `all'.
    make[1]: Leaving directory `/home/moha/FLENS-2009-06-12/tutorials'

    processing dir examples:

    make[1]: Entering directory `/home/moha/FLENS-2009-06-12/examples'
    make[1]: Nothing to be done for `all'.
    make[1]: Leaving directory `/home/moha/FLENS-2009-06-12/examples'

    processing dir tests:

    make[1]: Entering directory `/home/moha/FLENS-2009-06-12/tests'
    make[1]: Nothing to be done for `all'.
    make[1]: Leaving directory `/home/moha/FLENS-2009-06-12/tests'
    moha@ubuntu:~/FLENS-2009-06-12$ sudo checkinstall
    [sudo] password for moha:

    checkinstall 1.6.1, Copyright 2002 Felipe Eduardo Sanchez Diaz Duran
    This software is released under the GNU GPL.



    *****************************************
    **** Debian package creation selected ***
    *****************************************

    *** Warning: The package name "FLENS-2009-06" contains upper case
    *** Warning: letters. dpkg might not like that so I changed
    *** Warning: them to lower case.

    This package will be built according to these values:

    0 - Maintainer: [ root@ubuntu ]
    1 - Summary: [ FLENS ]
    2 - Name: [ flens-2009-06 ]
    3 - Version: [ 12 ]
    4 - Release: [ 1 ]
    5 - License: [ GPL ]
    6 - Group: [ checkinstall ]
    7 - Architecture: [ i386 ]
    8 - Source location: [ FLENS-2009-06-12 ]
    9 - Alternate source location: [ ]
    10 - Requires: [ ]
    11 - Provides: [ flens-2009-06 ]

    Enter a number to change any of them or press ENTER to continue:

    Installing with make...Installing with install...

    ========================= Installation results ===========================
    mkdir -p /usr/local//lib
    mkdir -p /usr/local//include/flens/
    cp libflens.so /usr/local//lib
    cp flens/*.h flens/*.tcc /usr/local//include/flens/

    ======================== Installation successful ==========================

    Copying documentation directory...
    ./
    ./LICENSE
    ./README
    ./INSTALL
    grep: /var/tmp/tmp.2Q0shVyLw4/newfile: No such file or directory

    Copying files to the temporary directory...OK

    Stripping ELF binaries and libraries...OK

    Compressing man pages...OK

    Building file list...OK

    Building Debian package...OK

    Installing Debian package...OK

    Erasing temporary files...OK

    Writing backup package...OK

    Deleting temp dir...OK


    ************************************************** ********************

    Done. The new package has been installed and saved to

    /home/moha/FLENS-2009-06-12/flens-2009-06_12-1_i386.deb

    You can remove it from your system anytime using:

    dpkg -r flens-2009-06

    ************************************************** ********************

    moha@ubuntu:~/FLENS-2009-06-12$
    -----------------------

    Thank you Paul.
    I will not pm (privae message) to ask for help, i will both private and public message u to THANK YOU.

  6. #6
    Linux Guru waterhead's Avatar
    Join Date
    Jul 2004
    Location
    Franklin, Wisconsin
    Posts
    4,577
    Is it possible that flens is not a program, but a library?

    I have already deleted my flens folder, but I did notice that it created a libflens.so file. This is a shared library file, so that is why I thought that.
    Paul

    Please do not send Private Messages to me with requests for help. I will not reply.

  7. #7
    Linux Guru waterhead's Avatar
    Join Date
    Jul 2004
    Location
    Franklin, Wisconsin
    Posts
    4,577
    I found some info that suggests that you need to copy the libflens.so file to a folder that is in the LD_LIBRARY_PATH. This means a folder like /usr/lib.
    Paul

    Please do not send Private Messages to me with requests for help. I will not reply.

  8. #8
    Just Joined!
    Join Date
    Nov 2009
    Posts
    6
    Quote Originally Posted by waterhead View Post
    I found some info that suggests that you need to copy the libflens.so file to a folder that is in the LD_LIBRARY_PATH. This means a folder like /usr/lib.
    yes, it;s a Library, and this lne is suposed to be executed, but i dont understand
    export LD_LIBRARY_PATH=/home/moha/FLENS-2009-06-12:$LD_LIBRARY_PATH

    but i also get no responce
    what should i do ?
    Thanks

  9. #9
    Linux Guru waterhead's Avatar
    Join Date
    Jul 2004
    Location
    Franklin, Wisconsin
    Posts
    4,577
    LD_LIBRARY_PATH = specifies where the computer looks for dynamically-loaded libraries

    I don't know if it actually copies the library, or just stores a link to it. The link files would be found in the /etc/ld.so.conf.d/ folder. I see that I don't have anything for flens, so it didn't work for me.

    You can manually create the link, but first you may need to copy the libflens.so file to the correct folder. I think that /usr/lib/ is the correct place for it. In fact, if you put it there I don't believe you need to register the path.

    In retrospect, that may not be the correct way to go about this. You may want to keep it in the folder that it was created in. This way it has access to the other files in that folder. Then create a file for it named libflens.conf containing the path to it. Put that file in the /etc/ld.so.conf.d folder. Then update everything, with this command.
    Code:
    sudo ldconfig
    I hope this fixes everything. Ubuntu does things a little differently. The old way was to put the path in the /etc/ld.so.conf file, then run ldconfig to update everything. You may still need to do that, so that is why I mentioned it.
    Paul

    Please do not send Private Messages to me with requests for help. I will not reply.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...