Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12
Hi everyone especially to helpers, I update my FreeNAS file server and this also updated unison to the version 2.40.61. In order to continue backup of my working machine (Ubuntu ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    DTF
    DTF is offline
    Just Joined!
    Join Date
    May 2008
    Posts
    29

    Problem with installing source code


    Hi everyone especially to helpers,

    I update my FreeNAS file server and this also updated unison to the version 2.40.61. In order to continue backup of my working machine
    (Ubuntu 10.10 (kernel 2.6.35-30) on ASRock A785GMH/128M with AMD Athlon(tm) II X2 550 processor)
    I had to have the same version of unison on that machine.
    I don't have experience in installing source code so i followed the ubuntu guide on webpage Ubuntu:Maverick -
    ---------------------------------------------------------------------
    Installing a package from source

    * Make sure you have all the necessary development tools (i.e. libraries, compilers, headers):

    sudo apt-get install build-essential linux-headers-$(uname -r)

    Note: "uname -r" lists the current kernel you are using

    * Extract the archive that contains the source files:

    tar xvf sourcefilesarchive.tar.gz

    * Build the package using the package's script (in this case the configure script), compile the package (make), and install the compiled package into your system (make install):

    cd /path/to/extracted/sourcefiles
    ./configure
    sudo make
    sudo make install
    ---------------------------------------------------------------------

    And there comes to the problem. I downloaded source from
    Directory Index
    and command ./configure returns me:" bash: ./configure: No such file or directory"
    So i presume problem is in the name of THE script for build the package, which in ubuntu guide is called configure. So can anyone help or maybe recommend another, if any, approach in installing source?

  2. #2
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    Make sure you are in the directory containing the downloaded tarball. Did you get an error when you extracted it also?
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

  3. #3
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Hello

    Here's another HowTo that might help you with installing software from source (check post #2):

    http://www.linuxforums.org/forum/lin...are-linux.html
    oz

  4. #4
    DTF
    DTF is offline
    Just Joined!
    Join Date
    May 2008
    Posts
    29
    Thanks for replays,


    yes i was in the directory that contained the downloaded tarball, and i don't get any error when extracted.
    And I use root permissions when needed.

  5. #5
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    Try installing the needed tools first.
    Code:
    sudo apt-get install build-essential linux-headers-$(uname -r)
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

  6. #6
    DTF
    DTF is offline
    Just Joined!
    Join Date
    May 2008
    Posts
    29
    yes, I have done that. As I said i followed the ubuntu guide, and I stuck at the command ./configure

  7. #7
    DTF
    DTF is offline
    Just Joined!
    Join Date
    May 2008
    Posts
    29
    Maybe files that i downloaded from official unison web page, isn't source as they claimed. So i wonder if someone from name and structure of files can tell if that is or isn't a source files.

    Code:
    --------------------------------------------------------------------
    drwxr-xr-x  9 zekopc zekopc   4096 2010-10-14 20:24 .
    drwxr-xr-x 37 zekopc zekopc   4096 2011-07-19 20:46 ..
    -rw-r--r--  1 zekopc zekopc   2158 2010-04-15 19:29 abort.ml
    -rw-r--r--  1 zekopc zekopc    470 2010-04-15 19:29 abort.mli
    -rw-r--r--  1 zekopc zekopc   6293 2010-04-15 19:29 BUGS.txt
    -rw-r--r--  1 zekopc zekopc   2690 2010-04-15 19:29 bytearray.ml
    -rw-r--r--  1 zekopc zekopc    595 2010-04-15 19:29 bytearray.mli
    -rw-r--r--  1 zekopc zekopc   1209 2010-04-15 19:29 bytearray_stubs.c
    -rw-r--r--  1 zekopc zekopc   7336 2010-04-15 19:29 case.ml
    -rw-r--r--  1 zekopc zekopc   1498 2010-04-15 19:29 case.mli
    -rw-r--r--  1 zekopc zekopc   2775 2010-04-15 19:29 checksum.ml
    -rw-r--r--  1 zekopc zekopc    599 2010-04-15 19:29 checksum.mli
    -rw-r--r--  1 zekopc zekopc   8383 2010-04-15 19:29 clroot.ml
    -rw-r--r--  1 zekopc zekopc    740 2010-04-15 19:29 clroot.mli
    -rw-r--r--  1 zekopc zekopc   8024 2010-04-15 19:29 common.ml
    -rw-r--r--  1 zekopc zekopc   5514 2010-04-15 19:29 common.mli
    -rw-r--r--  1 zekopc zekopc   2189 2010-04-15 19:29 CONTRIB
    -rw-r--r--  1 zekopc zekopc  35147 2010-04-15 19:29 COPYING
    -rw-r--r--  1 zekopc zekopc  34487 2010-04-15 19:29 copy.ml
    -rw-r--r--  1 zekopc zekopc   1329 2010-04-15 19:29 copy.mli
    -rw-r--r--  1 zekopc zekopc  19469 2010-04-15 19:29 .depend
    -rw-r--r--  1 zekopc zekopc   3438 2010-04-15 19:29 external.ml
    -rw-r--r--  1 zekopc zekopc    240 2010-04-15 19:29 external.mli
    -rw-r--r--  1 zekopc zekopc   8010 2010-04-15 19:29 fileinfo.ml
    -rw-r--r--  1 zekopc zekopc   1009 2010-04-15 19:29 fileinfo.mli
    -rw-r--r--  1 zekopc zekopc  45977 2010-04-15 19:29 files.ml
    -rw-r--r--  1 zekopc zekopc   4114 2010-04-15 19:29 files.mli
    -rw-r--r--  1 zekopc zekopc   1341 2010-04-15 19:29 fileutil.ml
    -rw-r--r--  1 zekopc zekopc    296 2010-04-15 19:29 fileutil.mli
    -rw-r--r--  1 zekopc zekopc   3003 2010-04-15 19:29 fingerprint.ml
    -rw-r--r--  1 zekopc zekopc    517 2010-04-15 19:29 fingerprint.mli
    -rw-r--r--  1 zekopc zekopc   8101 2010-10-08 17:44 fpcache.ml
    -rw-r--r--  1 zekopc zekopc    912 2010-04-15 19:29 fpcache.mli
    -rw-r--r--  1 zekopc zekopc   2251 2010-04-15 19:29 fs.ml
    -rw-r--r--  1 zekopc zekopc    237 2010-04-15 19:29 fs.mli
    -rw-r--r--  1 zekopc zekopc  13523 2010-04-15 19:29 fspath.ml
    -rw-r--r--  1 zekopc zekopc   1356 2010-04-15 19:29 fspath.mli
    -rw-r--r--  1 zekopc zekopc  12137 2010-04-15 19:29 globals.ml
    -rw-r--r--  1 zekopc zekopc   3983 2010-04-15 19:29 globals.mli
    -rw-r--r--  1 zekopc zekopc     85 2010-04-15 19:29 INSTALL
    -rw-r--r--  1 zekopc zekopc   1567 2010-04-15 19:29 INSTALL.gtk2
    -rw-r--r--  1 zekopc zekopc    582 2010-04-15 19:29 INSTALL.win32
    -rw-r--r--  1 zekopc zekopc   9365 2010-04-15 19:29 INSTALL.win32-cygwin-gnuc
    -rw-r--r--  1 zekopc zekopc  18856 2010-04-15 19:29 INSTALL.win32-msvc
    -rw-r--r--  1 zekopc zekopc    791 2010-04-15 19:29 linkgtk2.ml
    -rw-r--r--  1 zekopc zekopc    789 2010-04-15 19:29 linkgtk.ml
    -rw-r--r--  1 zekopc zekopc    791 2010-04-15 19:29 linktext.ml
    -rw-r--r--  1 zekopc zekopc   1848 2010-04-15 19:29 lock.ml
    -rw-r--r--  1 zekopc zekopc    341 2010-04-15 19:29 lock.mli
    drwxr-xr-x  5 zekopc zekopc   4096 2011-07-19 20:46 lwt
    -rw-r--r--  1 zekopc zekopc   8592 2010-04-15 19:29 main.ml
    -rw-r--r--  1 zekopc zekopc  10817 2010-10-08 17:44 Makefile
    -rw-r--r--  1 zekopc zekopc  13012 2010-04-15 19:29 Makefile.OCaml
    -rw-r--r--  1 zekopc zekopc   4044 2010-10-14 20:23 mkProjectInfo.ml
    -rw-r--r--  1 zekopc zekopc   2037 2010-04-15 19:29 name.ml
    -rw-r--r--  1 zekopc zekopc    332 2010-04-15 19:29 name.mli
    -rw-r--r--  1 zekopc zekopc  96226 2010-10-14 20:24 NEWS
    -rw-r--r--  1 zekopc zekopc  13115 2010-04-15 19:29 os.ml
    -rw-r--r--  1 zekopc zekopc   2074 2010-04-15 19:29 os.mli
    -rw-r--r--  1 zekopc zekopc  18967 2010-10-08 17:44 osx.ml
    -rw-r--r--  1 zekopc zekopc    938 2010-04-15 19:29 osx.mli
    -rw-r--r--  1 zekopc zekopc   3772 2010-04-15 19:29 osxsupport.c
    -rw-r--r--  1 zekopc zekopc   7327 2010-04-15 19:29 path.ml
    -rw-r--r--  1 zekopc zekopc   1129 2010-04-15 19:29 path.mli
    -rw-r--r--  1 zekopc zekopc  37057 2010-04-15 19:29 pixmaps.ml
    -rw-r--r--  1 zekopc zekopc   6477 2010-04-15 19:29 pred.ml
    -rw-r--r--  1 zekopc zekopc   2649 2010-04-15 19:29 pred.mli
    -rw-r--r--  1 zekopc zekopc  26390 2010-04-15 19:29 props.ml
    -rw-r--r--  1 zekopc zekopc   1290 2010-04-15 19:29 props.mli
    -rw-r--r--  1 zekopc zekopc   1454 2010-04-15 19:29 pty.c
    -rw-r--r--  1 zekopc zekopc   1137 2010-04-15 19:29 README
    -rw-r--r--  1 zekopc zekopc  30065 2010-10-08 17:44 recon.ml
    -rw-r--r--  1 zekopc zekopc   1665 2010-04-15 19:29 recon.mli
    -rw-r--r--  1 zekopc zekopc  52708 2010-04-15 19:29 remote.ml
    -rw-r--r--  1 zekopc zekopc   4614 2010-04-15 19:29 remote.mli
    -rw-r--r--  1 zekopc zekopc   3007 2010-04-15 19:29 ROADMAP.txt
    -rw-r--r--  1 zekopc zekopc   5019 2010-04-15 19:29 sortri.ml
    -rw-r--r--  1 zekopc zekopc    828 2010-04-15 19:29 sortri.mli
    -rw-r--r--  1 zekopc zekopc  22743 2010-04-15 19:29 stasher.ml
    -rw-r--r--  1 zekopc zekopc   1396 2010-04-15 19:29 stasher.mli
    -rw-r--r--  1 zekopc zekopc 285385 2010-10-14 20:24 strings.ml
    -rw-r--r--  1 zekopc zekopc    166 2010-04-15 19:29 strings.mli
    drwxr-xr-x  4 zekopc zekopc   4096 2011-07-19 20:46 system
    -rw-r--r--  1 zekopc zekopc    774 2010-04-15 19:29 system.ml
    -rw-r--r--  1 zekopc zekopc    182 2010-04-15 19:29 system.mli
    -rw-r--r--  1 zekopc zekopc  11219 2010-10-11 15:29 terminal.ml
    -rw-r--r--  1 zekopc zekopc    825 2010-04-15 19:29 terminal.mli
    -rw-r--r--  1 zekopc zekopc  17333 2010-04-15 19:29 test.ml
    -rw-r--r--  1 zekopc zekopc    168 2010-04-15 19:29 test.mli
    -rw-r--r--  1 zekopc zekopc  50254 2010-04-15 19:29 TODO.txt
    -rw-r--r--  1 zekopc zekopc  28182 2010-04-15 19:29 transfer.ml
    -rw-r--r--  1 zekopc zekopc   4754 2010-04-15 19:29 transfer.mli
    -rw-r--r--  1 zekopc zekopc   8113 2010-04-15 19:29 transport.ml
    -rw-r--r--  1 zekopc zekopc    612 2010-04-15 19:29 transport.mli
    -rw-r--r--  1 zekopc zekopc   3119 2010-04-15 19:29 tree.ml
    -rw-r--r--  1 zekopc zekopc   2995 2010-04-15 19:29 tree.mli
    drwxr-xr-x  2 zekopc zekopc   4096 2011-07-19 20:46 ubase
    -rw-r--r--  1 zekopc zekopc  28997 2010-05-20 11:08 uicommon.ml
    -rw-r--r--  1 zekopc zekopc   3698 2010-04-15 19:29 uicommon.mli
    -rw-r--r--  1 zekopc zekopc 157418 2010-04-15 19:29 uigtk2.ml
    -rw-r--r--  1 zekopc zekopc    146 2010-04-15 19:29 uigtk2.mli
    -rw-r--r--  1 zekopc zekopc  76624 2010-04-15 19:29 uigtk.ml
    -rw-r--r--  1 zekopc zekopc    213 2010-04-15 19:29 uigtk.mli
    drwxr-xr-x  4 zekopc zekopc   4096 2011-07-19 20:46 uimac
    -rw-r--r--  1 zekopc zekopc  18551 2010-04-15 19:29 uimacbridge.ml
    -rw-r--r--  1 zekopc zekopc  26369 2010-04-15 19:29 uimacbridgenew.ml
    drwxr-xr-x  8 zekopc zekopc   4096 2011-07-19 20:46 uimacnew
    drwxr-xr-x  9 zekopc zekopc   4096 2011-07-19 20:46 uimacnew09
    -rw-r--r--  1 zekopc zekopc    288 2010-04-15 19:29 ui.mli
    -rw-r--r--  1 zekopc zekopc  30848 2010-04-15 19:29 uitext.ml
    -rw-r--r--  1 zekopc zekopc    146 2010-04-15 19:29 uitext.mli
    -rw-r--r--  1 zekopc zekopc  68745 2010-05-20 11:08 unicode.ml
    -rw-r--r--  1 zekopc zekopc   1729 2010-04-15 19:29 unicode.mli
    -rw-r--r--  1 zekopc zekopc  76430 2010-04-16 10:44 unicode_tables.ml
    -rw-r--r--  1 zekopc zekopc    383 2010-04-15 19:29 unison.hgr
    -rw-r--r--  1 zekopc zekopc  91524 2010-04-15 19:29 update.ml
    -rw-r--r--  1 zekopc zekopc   3222 2010-07-19 15:05 update.mli
    -rw-r--r--  1 zekopc zekopc   5533 2010-04-15 19:29 uutil.ml
    -rw-r--r--  1 zekopc zekopc   2076 2010-04-15 19:29 uutil.mli
    drwxr-xr-x  2 zekopc zekopc   4096 2011-07-19 20:46 win32rc
    -rw-r--r--  1 zekopc zekopc    217 2010-04-15 19:29 winmain.c
    -rw-r--r--  1 zekopc zekopc   2243 2010-04-15 19:29 xferhint.ml
    -rw-r--r--  1 zekopc zekopc    793 2010-04-15 19:29 xferhint.mli
    -----------------------------------------------------------------------------------
    So please let me notice are this files source or not?
    Last edited by MikeTbob; 07-20-2011 at 11:20 AM. Reason: Added Code Tags

  8. #8
    Linux Engineer rcgreen's Avatar
    Join Date
    May 2006
    Location
    the hills
    Posts
    1,134
    Unix
    You'll need the Objective Caml compiler (version 3.11.2 or later), which is available from The Caml language: Home. Building and installing OCaml on Unix systems is very straightforward; just follow the instructions in the distribution. You'll probably want to build the native-code compiler in addition to the bytecode compiler, as Unison runs much faster when compiled to native code, but this is not absolutely necessary. (Quick start: on many systems, the following sequence of commands will get you a working and installed compiler: first do make world opt, then su to root and do make install.)

    You'll also need the GNU make utility, standard on many Unix systems. (Type make –version to check that you've got the GNU version.)

    Once you've got OCaml installed, grab a copy of the Unison sources, unzip and untar them, change to the new unison directory, and type “make UISTYLE=text.” The result should be an executable file called unison. Type ./unison to make sure the program is executable. You should get back a usage message.

    If you want to build the graphical user interface, you will need to install two additional things:

    * The Gtk2 libraries. These areavailable from The GTK+ Project and are standard on many Unix installations.

    * The lablgtk2 OCaml library. Grab the developers' tarball from

    LablGTK,

    untar it, and follow the instructions to build and install it.

    (Quick start: make configure, then make, then make opt, then su and make install.)

    Now build unison. If your search paths are set up correctly, simply typing make again should build a unison executable with a Gtk2 graphical interface. (In previous releases of Unison, it was necessary to add UISTYLE=gtk2 to the 'make' command above. This requirement has been removed: the makefile should detect automatically when lablgtk2 is present and set this flag automatically.)

    Put the unison executable somewhere in your search path, either by adding the Unison directory to your PATH variable or by copying the executable to some standard directory where executables are stored.
    http://www.seas.upenn.edu/~bcpierce/....html#building

    BTW, ocaml is in the Ubuntu repositories, so
    you can install it through Synaptic, or from the
    command line. sudo apt-get install ocaml
    Last edited by rcgreen; 07-20-2011 at 12:03 AM.

  9. #9
    DTF
    DTF is offline
    Just Joined!
    Join Date
    May 2008
    Posts
    29
    Thanks rcgreen,
    now I try that approach for installing unison and "make UISTYLE=text" returns me

    --------------------------------------------------------------------------
    zekopc@zekopc:~/unison-2.40.61$ make UISTYLE=text
    ./mkProjectInfo > Makefile.ProjectInfo
    /bin/sh: ./mkProjectInfo: not found
    make: *** Deleting file `Makefile.ProjectInfo'
    UISTYLE = text
    Building for Unix
    NATIVE = true
    THREADS = false
    STATIC = false
    OSTYPE =
    OSARCH =
    make tags
    make[1]: Entering directory `/home/zekopc/unison-2.40.61'
    ./mkProjectInfo > Makefile.ProjectInfo
    /bin/sh: ./mkProjectInfo: not found
    make[1]: *** Deleting file `Makefile.ProjectInfo'
    if [ -f `which etags` ]; then \
    etags *.mli */*.mli *.ml */*.ml */*.m *.c */*.c *.txt \
    ; fi
    /bin/sh: etags: not found
    make[1]: [tags] Error 127 (ignored)
    ------------------------------------------------------------------------
    Does somebody know what it means?
    Last edited by DTF; 07-20-2011 at 07:00 PM.

  10. #10
    Linux Engineer rcgreen's Avatar
    Join Date
    May 2006
    Location
    the hills
    Posts
    1,134
    /bin/sh: etags: not found
    The etags command is not available on your system.
    You must install the emacs package.

Page 1 of 2 1 2 LastLast

Posting Permissions

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