#1
  1. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2004
    Posts
    597
    Rep Power
    15

    Problem on installing OpenBSD


    Hi folks,


    OpenBSD 4.0 amd64


    This is a newly installed box. After running;

    $ cvs checkout -rOPENBSD_4_0 -P ports
    and
    $ cvs checkout -rOPENBSD_4_0 -P src

    as user


    Then ran;
    $ cd /usr/src/sys/arch/i386/conf && \
    $ config GENERIC && \
    $ cd ../compile/GENERIC && \
    $ make clean && make depend && make && \
    $ make install && reboot

    All went through w/o complaint with the box rebooted finally.


    As root
    # cd /usr/
    # rm -r /usr/obj/* && \
    > make obj && make build && \
    > reboot
    Code:
    rm: /usr/obj/*: No such file or directory
    # ls -al /usr/obj/
    Code:
    total 8
    drwxrwxr-x   2 root  wsrc   512 Sep 17  2006 .
    drwxr-xr-x  17 root  wheel  512 Apr 11 19:05 ..
    No data inside


    Again;
    # make obj && make build && \
    > reboot
    `obj' is up to date.
    make: don't know how to make build. Stop in /usr.
    * end *


    # find / -name obj -type d
    Code:
    /usr/obj
    Pls advise. TIA


    Furthermore, what will be the difference between;
    $ cvs check -rOPENBSD_4_0 -Pd src

    and
    $ cvs up -rOPENBSD_4_0 -Pd src

    check vs up



    B.R.
    satimis
  2. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,626
    Rep Power
    4247
    Originally Posted by satimis
    Then ran;
    $ cd /usr/src/sys/arch/i386/conf && \
    $ config GENERIC && \
    $ cd ../compile/GENERIC && \
    $ make clean && make depend && make && \
    $ make install && reboot
    Here's your first mistake. You've installed an amd64 platform OS. Now you've compiled and installed kernel for 386 (32 bit) instead of 64 bit. To be sure, you should modify your compile procedure so that you do this:
    cd /usr/src/sys/arch/`machine`/conf
    This will go to the correct architecture, no matter where OpenBSD is installed.

    Next, you aren't in the correct dirs when you're running make build. Here's how you should do it:
    Code:
    # rm -rf /usr/obj/*
    # cd /usr/src
    # make obj
    
    Next, make sure all the dirs are created
    # cd /usr/src/etc && env DESTDIR=/ make distrib-dirs
    
    and then build the system
    # cd /usr/src
    # make build
    As for cvs checkout vs. cvs up, you'll need to run cvs checkout to checkout a complete initial copy of the branch on to your hard disk. Later on, you can upgrade by running cvs up, which will only fetch the differences. If you run cvs checkout again, you're again checking out a full copy of everything, rather than just the differences.
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
    "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
    Down with Sharon Osbourne

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2004
    Posts
    597
    Rep Power
    15
    Hi Scorpions4ever,

    Tks for your advice.


    I have already solved my 1st mistake. I was held on the latter sometimes.

    Next, you aren't in the correct dirs when you're running make build. Here's how you should do it:
    Code:
    # rm -rf /usr/obj/*
    # cd /usr/src
    # make obj
    
    Next, make sure all the dirs are created
    # cd /usr/src/etc && env DESTDIR=/ make distrib-dirs
    
    and then build the system
    # cd /usr/src
    # make build
    Performed following steps;

    # cd /usr/src/etc && env DESTDIR=/ make distrib-dirs
    It went through w/o complaint.

    # rm -rf /usr/obj/*
    # cd /usr/src
    # make obj && make build
    Code:
    ........
    ===> kerberosV/doc
    /usr/bin/install-info /usr/src/kerberosV/doc/obj/heimdal.info /usr/share/info/dir
    /usr/bin/install -c -m 444 -o root -g bin -p /usr/src/kerberosV/doc/obj/heimdal.info /usr/share/info
    cd /usr/src/share/man && exec make makedb
    /usr/libexec/makewhatis /usr/share/man
    It also went through w/o complaint BUT taking lengthy time to finish.


    As for cvs checkout vs. cvs up, you'll need to run cvs checkout to checkout a complete initial copy of the branch on to your hard disk. Later on, you can upgrade by running cvs up, which will only fetch the differences. If you run cvs checkout again, you're again checking out a full copy of everything, rather than just the differences.
    Advice noted with tks.

    Each time on running "cvs update", it updates everything not just the different taking prolonged time to complete. Is there another way? TIA


    B.R.
    satimis

IMN logo majestic logo threadwatch logo seochat tools logo