Find the answer to your Linux question:
Results 1 to 9 of 9
Hi, I was trying to install ClamTk on Ubuntu but, it said it was outdated so I tried getting the sources and installing with the sources. When I tried compiling ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2008
    Posts
    12

    Compiling Error


    Hi, I was trying to install ClamTk on Ubuntu but, it said it was outdated so I tried getting the sources and installing with the sources. When I tried compiling the source files in the terminal with ./configure I received and error:
    checking build system type... i686-pc-linux-gnulibc1
    checking host system type... i686-pc-linux-gnulibc1
    checking target system type... i686-pc-linux-gnulibc1
    creating target.h - canonical system defines
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... no
    checking for mawk... mawk
    checking whether make sets $(MAKE)... yes
    checking for gawk... (cached) mawk
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether ln -s works... yes
    checking whether make sets $(MAKE)... (cached) yes
    checking for style of include used by make... GNU
    checking for gcc... gcc
    checking for C compiler default output file name...
    configure: error: C compiler cannot create executables
    See `config.log' for more details.
    ben@ubuntu:~/Desktop/clamav-0.93$
    how come it could not create executables?

    edit*: there was someone else who had a simliar problem as me and so I also followed his instructions by using:
    sudo aptitude update
    sudo aptitude install build-essential

    and it did get me somewhere but now I had another error:
    checking for zlib installation... /usr
    configure: error: Please install zlib and zlib-devel packages

  2. #2
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,393
    The error message says it all really. Install the zlib development package (on Debian based distros it is called zlib1g-dev).

  3. #3
    Just Joined!
    Join Date
    Jun 2008
    Posts
    12
    thanks, i then found out that i needed to install it and installed it but while i was in the "make install" phase, there was another error with the compiling for some reason... beside gcc and zlibs, what else do you need to install. i am new to all of this and so i dont know what else i would need.

  4. $spacer_open
    $spacer_close
  5. #4
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,393
    Post back the error message (and about 5 or so lines before the message appeared).

  6. #5
    Just Joined!
    Join Date
    Jun 2008
    Posts
    12
    thats odd, when i tried to compile again, it seemed like it worked... when i did the same process, it said it failed... anyway.. but ill post what it said in a document, at least the 'make install' part. but can you look at the dump to see if it failed anyway? i am not sure because the last time i did it, i failed 3 times.

    also, if i did successfully compile it, what do i do next to install the software?

    edit*: when i go into the terminal to type in 'freshclam' or 'sudo freshclam', i get an error:
    ERROR: Please edit the example config file /usr/local/etc/freshclam.conf.
    ERROR: Please edit the example config file /usr/local/etc/clamd.conf.
    ERROR: Can't parse the config file /usr/local/etc/clamd.conf
    how do i get permissions to write into the root files or any place in linux that isn't in my home folder.
    Attached Files Attached Files

  7. #6
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,393
    From the output it seems like "make install" completed without any problems. The next stage is to edit the files to suite your needs as noted by the error messages you get when you try to run the application.

  8. #7
    Just Joined!
    Join Date
    Jun 2008
    Posts
    12
    can you tell me how i can edit those required files? because everytime i tried to change any files, it says i dont have permission in the filesystems.

  9. #8
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,393
    You have to be root, just like you did when you ran "make install". To do this you can do "sudo nano somefile" or if you prefer a gui ALT-F2 and enter "gksu gedit" and then open the file you want to edit.

  10. #9
    Just Joined!
    Join Date
    Jun 2008
    Posts
    12
    i had to reformat my whole hard drive yesterday and I could not find the code for zlibs for ubuntu... can someone provide the code for it? i could not find it in the forums...

    also, thank you daark.child for helping me

Posting Permissions

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