summaryrefslogtreecommitdiff
path: root/hurd/building/example.mdwn
blob: 7c84b102b720065c9651b2a00204498b3892563f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
[[!meta copyright="Copyright © 2007, 2008 Free Software Foundation, Inc."]]

[[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable
id="license" text="Permission is granted to copy, distribute and/or modify this
document under the terms of the GNU Free Documentation License, Version 1.2 or
any later version published by the Free Software Foundation; with no Invariant
Sections, no Front-Cover Texts, and no Back-Cover Texts.  A copy of the license
is included in the section entitled
[[GNU Free Documentation License|/fdl]]."]]"""]]

I checked out the source code on my Ubuntu GNU/Linux system connected to the
Internet using:

    git clone git://git.sv.gnu.org/hurd/hurd.git

I mounted the hurd directory on Ubuntu from my GNU Hurd system connected to the
LAN through NFS:

    settrans -ac /mnt /hurd/nfs ubuntu:/home/shaks/code

Copy the hurd directory, locally.

For compilation, you require build-essential, libc0.3-dev, hurd-dev.  I used
Debian GNU Hurd K10 CDs for installation and they are available in the first
CD.

    apt-get update
    apt-get install build-essential libc0.3-dev hurd-dev

Enter into the hurd directory and start building it:

    cd hurd
    mkdir build 
    cd build 
    ../configure
    make

There is a "libiohelp needed by" error.  So, do a manual compilation for
libiohelp.

    cd ..
    make libiohelp
    cd build
    make

There is a "libiostore needed by" error.  So, do a manual compilation for
libiostore.

    cd ..
    make libiostore
    cd build
    make

There is a "libiohelp.so: No such file or directory" error.

Copy libiohelp/libiohelp.so file to build/libiohelp/ and re-run make,

    make

The executables are created in the subdirectories in build/ directory.