Install error
Results 1 to 8 of 8

Thread: Install error

  1. #1
    Senior Member
    Join Date
    Feb 2003
    Location
    Memphis, TN
    Posts
    3,747

    Install error

    I've just recently installed Mandrake 9.1 on my box and am trying ot install snort but run into this problem.

    [matt@localhost snort-2.0.1]$ ./configure
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for gawk... gawk
    checking whether make sets ${MAKE}... yes
    checking for style of include used by make... GNU
    checking for gcc... no
    checking for cc... no
    checking for cc... no
    checking for cl... no
    configure: error: no acceptable C compiler found in $PATH
    [matt@localhost snort-2.0.1]$ make
    make: *** No targets specified and no makefile found. Stop.
    [matt@localhost snort-2.0.1]$ make install
    make: *** No rule to make target `install'. Stop.
    any Ideas.?

    btw: as you can probably see I'm pretty new to linux.
    =

  2. #2
    Junior Member
    Join Date
    Jul 2003
    Posts
    5
    yeh im pretty new to the linux OS myself and this is only a guess but i think you may have to update/install a C complier. you can get one (GCC 3.3) with the latest "Linux Format" magazine. like i said though, iv only been using linux 4 a couple of days so i cant guarantee that this is the right soloution to your problem.

    yeh im pretty new to the linux OS myself and this is only a guess but i think you may have to update/install a C complier. you can get one (GCC 3.3) with the latest "Linux Format" magazine. like i said though, iv only been using linux 4 a couple of days so i cant guarantee that this is the right soloution to your problem.

  3. #3
    AO übergeek phishphreek's Avatar
    Join Date
    Jan 2002
    Posts
    4,324
    I've never used mandrake 9.1 but I'm assuming its very similar to RH8&9. (I'm installing Mandrake 9.1 tonight... so I'll be able to help more then if this doesn't work)

    Do a

    #whereis gcc

    that should list the directory where gcc is

    or...

    #whereis cc

    that should also list where cc is

    then edit your path in

    /home/user/.bashrc
    (if you are logging in as root... then your home directory is /root/ )

    to include the directory where the compiler is located.

  4. #4
    Senior Member linuxcomando's Avatar
    Join Date
    Sep 2001
    Posts
    430
    Just download the latest gcc and compile it, or even easier i belive mandrake has a setup tool to install more packages...you could just see if gcc is even installed

    fyi:
    http://ftp.gnu.org/pub/gnu/gcc/
    I toor\'d YOU!

  5. #5
    Senior Member
    Join Date
    Feb 2003
    Location
    Memphis, TN
    Posts
    3,747
    When I type in whereis gcc or whereis cc this is what I get

    [root@localhost matt]# whereis gcc
    gcc:
    [root@localhost matt]# whereis cc
    cc:
    [root@localhost matt]#
    I downloaded the new GCC but I can't do anything with it since I have to compile it.
    =

  6. #6
    AO übergeek phishphreek's Avatar
    Join Date
    Jan 2002
    Posts
    4,324
    cheyenne1212: By now, you know that means that it isn't installed.

    Check out rpmdrake as a possible way to install cc and gcc. They should be located on the CDs that you used to install.

    If you are using CLI... you can use the rpm command (I think... I haven't really used mandrake yet... except for a quick tour, but I'm installing it as we speak)...

    Oh, if I'm not mistaken.. you can still install gcc without a compiler.
    I think the "make" command is installed no matter what...

    So, if you can't use the rpm utility... dl the tar.gz file, unzip it then untar it and then ./configure then ./make (plus options needed... read the install/readme files)

  7. #7
    Senior Member
    Join Date
    Feb 2003
    Location
    Memphis, TN
    Posts
    3,747
    OK, I now have CC, and GCC on my computer. So now I want to port snort on it but when I got to configure snort is says that I need the libpcap headers. So I download libpcap and try to install them but then it tells me I need flex, and not lex. So I download Flex from ftp.gnu.org, and everytthing goes ok until I issue the make command.

    root@localhost flex-2.5.4]# ./configure
    creating cache ./config.cache
    checking whether ln -s works... yes
    checking for bison... no
    checking for byacc... no
    checking for gcc... gcc
    checking whether we are using GNU C... yes
    checking whether gcc accepts -g... yes
    checking for ranlib... ranlib
    checking for a BSD compatible install... /usr/bin/install -c
    checking whether make sets $MAKE... yes
    checking for working const... yes
    checking how to run the C preprocessor... gcc -E
    checking whether cross-compiling... no
    checking for ANSI C header files... yes
    checking for size_t... yes
    checking for ANSI C header files... (cached) yes
    checking for string.h... yes
    checking for malloc.h... yes
    checking for sys/types.h... yes
    updating cache ./config.cache
    creating ./config.status
    creating Makefile
    creating config.h
    [root@localhost flex-2.5.4]# make
    cp ./initscan.c scan.c
    touch .bootstrap
    gcc -c -I. -I. -g -O ccl.c
    gcc -c -I. -I. -g -O dfa.c
    gcc -c -I. -I. -g -O ecs.c
    gcc -c -I. -I. -g -O gen.c
    gcc -c -I. -I. -g -O main.c
    gcc -c -I. -I. -g -O misc.c
    gcc -c -I. -I. -g -O nfa.c
    yacc -d ./parse.y
    make: yacc: Command not found
    make: *** [parse.c] Error 127
    [root@localhost flex-2.5.4]#
    It configures it ok, but once I try the make command it stops working after a couple files. Any more Ideas?
    =

  8. #8
    AO übergeek phishphreek's Avatar
    Join Date
    Jan 2002
    Posts
    4,324
    I'm not sure if you've fixed your problem as of yet... but if you haven't... take a look at this discussion.

    http://www.experts-exchange.com/Oper..._20622359.html

Posting Permissions

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