Results 1 to 9 of 9

Thread: Makefiles on freeBSD [RESOLVED: thanks]

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2002
    Posts
    183

    Makefiles on freeBSD [RESOLVED: thanks]

    Ive looked everywhere for information on Makefiles on FreeBSD, theres loads of it but the problem is I cant get anything to work I just got my freeBSD and I would like to install netcat on it. Ive extracted it into a folder which has some weird files in it, such as a file named "Makefile". What exactly am I ment to do to install it? Ive wasted hours on this so far
    Last edited by Evil_Cowgod; Dec 15th, 2002 at 02:44 PM.

  2. #2
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772
    Try typing 'make' and (as root) 'make install'
    Alcohol & calculus don't mix.
    Never drink & derive.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Apr 2002
    Posts
    183
    Thanks, unfourtunatly I couldnt get it to work. I went into the same directory as them, then tried "make" it then said something about usage of 'make' then when I tried 'make install' it said it doesnt know how to make install

  4. #4
    Frenzied Member Zaei's Avatar
    Join Date
    Jul 2002
    Location
    My own little world...
    Posts
    1,710
    Read the readme =P. Its quite possible you need to do something else before you can actually mkae what you want to make =).

    Z.

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Apr 2002
    Posts
    183
    Il look for it again, maybe I might get lucky this time.

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Apr 2002
    Posts
    183
    nup, no luck whenever I find something on Makefiles I dont understand what exactly Im ment to do, Please be patient with me, Im only 14.

  7. #7
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Usually to install a program from source on a *nix platform, you need gcc (the gnu c compiler). Once you're sure you have this, usually you do something similar to this:
    Code:
    ./configure
    make
    su -c 'make install'
    That should work. If you're not superuser, you need to su to it to install it to the correct directory (unless you have write access to /usr, where most programs are installed).
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  8. #8
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Just looked into this one, and all you had to do was look at the README. It states that to make it, all you have to do is type "make <systype>". Since you are on freeBSD, I looked at the makefile and it has a target for make freebsd. So that's what you should type.
    Code:
    make freebsd
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  9. #9

    Thread Starter
    Addicted Member
    Join Date
    Apr 2002
    Posts
    183
    YAY! Thank you! I finnaly got it working ) For some reason whenever I try './CONFIGURE' it would say its not a command, but I read what you said, and I read some stuff in the Makefile and managed to get it working with "make -e freebsd" Thanks, I owe you a favour now lol.

Posting Permissions

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



Click Here to Expand Forum to Full Width