December 28

Compiling squidGuard 1.4 on CentOS 5.1

SquidGuard is a URL redirector for the Squid HTTP Proxy server.  Its main purpose is to restrict access to unsavoury websites.

I found that when compiling squidGuard 1.4 on the CentOS 5.1 distribution of Linux, the ‘make’ phase failed with the following error:

/bin/sh: -c: line 1: syntax error near unexpected token `then'
/bin/sh: -c: line 1: `   @if [ ! -x bison -y ]; then \'
make[1]: *** [y.tab.c] Error 2
make[1]: Leaving directory `/home/antgreen/downloads/squidGuard-1.4/src'
make: *** [all] Error 1

My workaround was to edit the file: src/Makefile and replace the following:

y.tab.c y.tab.h: sg.y sg.h
        @if [ "$(YACC)" = "yacc" ]; then \
           @if [ ! -x $(YACC) ]; then \
              echo " " ; \
              echo "No yacc/bison found. Copy prepared files for y.tab.h and y.tab.c over. " ; \
              echo " " ; \
              cp y.tab.h.bison y.tab.h ; \
              cp y.tab.c.bison y.tab.c ; \
           else \
              $(YACC) -d sg.y  ; \
           fi ; \
        else \
           $(YACC) -d sg.y  ; \
        fi ;

with:

y.tab.c y.tab.h: sg.y sg.h
           $(YACC) -d sg.y  ; \

Re-run ‘make’ and cross your fingers!


Tags: ,
Copyright 2020. All rights reserved.

Posted December 28, 2008 by anthony in category "Open-source software

33 COMMENTS :

  1. By Rodrick on

    Абсолютно с Вами согласен.
    Идея отличная, поддерживаю.

    Reply
  2. By tim viec lam tai ha noi on

    Hmm is anyone else experiencing problems with the images
    on this blog loading? I’m trying to figure out if its a problem on my end or if it’s the blog.
    Any feed-back would be greatly appreciated.

    Reply
  3. By newes tporn stars on

    That’s great news for users looking for diversity, as the site boasts men of all
    different races and body types. 43% of internet users view porn.
    Before the internet became the public entity of the World Wide Web,
    trans folks had limited means of connecting online. Clara Jane Swinson. Director general Global and Public Health, Department of Health and Social Care.
    Living with a sex doll has psychological and social consequences
    for men who form emotional and physical relationships with non-life objects.
    They also help end the demand, by helping men who have
    been caught purchasing women. The problem is getting so
    big “they are bringing them in from other countries and the women don’t want to be deported. “They are hurting us
    through our phones. She said it is easy to access on phones these days
    and provides a rush to the brain — dopamine, which is
    like heroin and cocaine and can become an addiction.

    Reply
  4. By link on

    It’s perfect time to make a few plans for the long run and it is time to be happy.
    I’ve read this post and if I could I want to recommend you
    few fascinating things or tips. Perhaps you could write subsequent articles referring
    to this article. I want to read even more things approximately it!

    Reply
  5. By dewa poker on

    Excellent weblog right here! Additionally your site so much up fast!
    What web host are you the use of? Can I get your affiliate link for your host?
    I wish my web site loaded up as fast as yours lol

    Reply
  6. By Big girl pussy on

    The goal is to help others check whether their girlfriends ever acted in those films.
    A CHINESE tech whizz claims to have built an app that lets sickos check if
    their girlfriends have ever acted in porn. He’s
    promised to stream a live Q&A on the Chinese video-streaming platform Douyu at 2pm BST, sources
    told The Sun. I pretend I’m horny even though I’m not,’ she explains
    as she logs on to the platform that allows her to entice people in starting private
    chats with her. I would put money on the real numbers being even higher.
    And because watching porn involved a purchase, there was good
    money to be made, too. The graphics are pretty good and
    the sex is also shown in first-person which makes for a
    more immersive experience. Sure, bits are bigger and tighter and bouncier than for most of us, but with concerns about unrealistic expectations of sex being set by pornography, something a little more real has to
    be good. With so many of us watching pornography,
    sending nudes and using technology to enhance our sex lives,
    it’s about time we stopped getting all high and mighty on the people who help us
    to get off.

    Reply
  7. By สยามสมาคม on

    Good post. I learn something totally new and challenging on blogs
    I stumbleupon on a daily basis. It will always be interesting
    to read through articles from other writers
    and use something from their web sites.

    Reply
  8. By comprar seguidores e curtidas on

    Have you ever considered creating an e-book or guest authoring on other websites?
    I have a blog centered on the same subjects you
    discuss and would love to have you share some stories/information. I know my viewers would value your work.
    If you are even remotely interested, feel free to shoot me an email.

    Reply
  9. By sexy baccarat on

    I know this site offers quality dependent content and other information, is there any other site which provides such data in quality?

    Reply
  10. By nettoyeurs hautepression on

    Aw, this was a really good post. Spending some time and actual effort to create a top notch article… but what can I say… I hesitate a
    whole lot and don’t seem to get anything done.

    Reply
  11. By Nice to meet you! on

    Woah! I’m really digging the template/theme
    of this blog. It’s simple, yet effective. A lot of times it’s very difficult to get
    that “perfect balance” between usability and appearance.
    I must say you’ve done a amazing job with this.
    In addition, the blog loads super fast for me on Firefox.
    Outstanding Blog!

    Reply
  12. By xsbn xosovui on

    An interesting discussion is worth comment. I do believe that you
    need to publish more about this subject, it might not be a
    taboo subject but generally people don’t speak about
    these topics. To the next! Cheers!!

    Reply
  13. By w88club ทางเข้า on

    Greetings from Carolina! I’m bored to death at work so I decided to check out your site on my iphone during lunch break.
    I love the information you present here and can’t wait to take a look when I get home.
    I’m surprised at how fast your blog loaded on my mobile ..
    I’m not even using WIFI, just 3G .. Anyhow, amazing site!

    Reply
  14. By OTP SMS on

    If you wish for to obtain a good deal from this article then you have to apply such strategies to your won blog.

    Reply
  15. By instagram followers on

    hi!,I like your writing very so much! percentage we communicate
    more about your article on AOL? I require a specialist in this house to solve my problem.

    May be that’s you! Having a look forward to see
    you.

    Reply
  16. By Proteine Iso whey on

    I need to to thank you for this wonderful read!!
    I certainly loved every bit of it. I have got you bookmarked to check out new things you post…

    Reply
  17. By click here on

    I am not sure the place you are getting your info, but good topic.
    I needs to spend some time finding out more or figuring out more.
    Thank you for wonderful information I used to be on the lookout for this info for my mission.

    Reply
  18. By ไอท้อปพลัส ดีไหม on

    Do you mind if I quote a couple of your posts as long as I provide credit
    and sources back to your webpage? My website is in the exact same niche as yours and my users
    would definitely benefit from some of the information you
    present here. Please let me know if this ok with you.
    Regards!

    Reply
  19. By w88 login on

    What’s Taking place i am new to this, I stumbled upon this I have found It absolutely
    useful and it has helped me out loads. I am hoping to
    contribute & help other customers like its aided me. Great job.

    Reply
  20. By best personal computer repair on

    Good day! This is kind of off topic but I need some advice from an established blog.
    Is it tough to set up your own blog? I’m not
    very techincal but I can figure things out pretty quick.
    I’m thinking about setting up my own but I’m not sure where to begin. Do you have any tips or suggestions?
    Cheers

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *