Coder Social home page Coder Social logo

Comments (13)

ra-at-diladele-com avatar ra-at-diladele-com commented on September 26, 2024

It is same as #95

from squid-windows.

christianjungwirth avatar christianjungwirth commented on September 26, 2024

thanks for your quick answer.

but do i write --disable-arch-native in the squid.conf? and then run squid.exe -k parse?

from squid-windows.

ra-at-diladele-com avatar ra-at-diladele-com commented on September 26, 2024

from squid-windows.

christianjungwirth avatar christianjungwirth commented on September 26, 2024

ra-at-diladele-com, thank you for your answer, but allow me this stupid question:

I download the the project from github, download cygwin, install the required packages.

But which directory i have to compile?

thank you for your support in advance.

best regards
Christian

from squid-windows.

ra-at-diladele-com avatar ra-at-diladele-com commented on September 26, 2024

from squid-windows.

christianjungwirth avatar christianjungwirth commented on September 26, 2024

Hello,

sorry for my late answer.

This week I want to rebuild the squid with the cygwin terminal.

But everytime when I do the make command, I get some errors at the end, like this in the picture.


bild

Do you have a tip for me, what I do wrong?

from squid-windows.

zepingouin avatar zepingouin commented on September 26, 2024

I succeeded in building and running Squid with Cygwin on Windows 10.

I downloaded source code from Squid sources, was squid-5.7

I used this archived wiki as starting base.

Manually applied the patch on src/tools.cc file (just 3 lines to edit by removing && !_SQUID_CYGWIN_ at the end).

Open a Cygwin Terminal as user then run configure and wait some minutes (written as ONE line!) :

./configure --disable-arch-native --bindir=/bin/squid --sbindir=/usr/sbin/squid
 --sysconfdir=/etc/squid --datadir=/usr/share/squid --libexecdir=/usr/lib/squid
 --disable-strict-error-checkin --with-logdir=/var/log/squid --enable-build-info='Cygwin Windows 10'
 --with-swapdir=/var/cache/squid --with-pidfile=/var/run/squid.pid --enable-ssl
 --enable-delay-pools --enable-ssl-crtd --enable-icap-client --enable-esi --disable-eui
 --localstatedir=/var/run/squid --sharedstatedir=/var/run/squid
 --datarootdir=/usr/share/squid --enable-disk-io="AIO,Blocking,DiskThreads,IpcIo,Mmapped"
 --enable-auth-basic="DB,LDAP,NCSA,POP3,RADIUS,SASL,SMB,fake,getpwnam"
 --enable-auth-ntlm='fake' --enable-auth-negotiate='kerberos,wrapper'
 --enable-external-acl-helpers='LDAP_group,SQL_session,eDirectory_userip,file_userip,kerberos_ldap_group,session,time_quota,unix_group,wbinfo_group'
 --with-openssl --with-filedescriptors=65536 --enable-removal-policies="lru,heap"

Edit config.status file and change these 4 define by replacing " 1" with " 0":

D["HAVE_MEMRCHR"]=" 0"
D["HAVE_SCHED_GETAFFINITY"]=" 0"
D["HAVE_SCHED_SETAFFINITY"]=" 0"
D["HAVE_CPU_AFFINITY"]=" 0"

Run make and take a coffee, nap, etc... (-j4 option is for a 4 core CPU, adapt to yours):
make -j4

Run install and wait some minutes:
make -j4 install

Edit squid.conf if needed and init cache:
/usr/sbin/squid/squid -z

Open a Cygwin Terminal as Administrator, then install Squid as a Windows service:
Feel free to modify the description 😉

cygrunsrv -I 'squid' -d 'CYGWIN Squid'
 -f 'Proxy compiled on this computer'
 -p /usr/sbin/squid/squid.exe
 -a '-N' -y tcpip --type auto

Start the service:
cygrunsrv -S squid

You should have a Squid proxy working!
/bin/squid/squidclient mgr:info

from squid-windows.

Swe-HimelRana avatar Swe-HimelRana commented on September 26, 2024

@zepingouin Bro. Can you please share your compiled version. or explain what to do in tools.cc file?

from squid-windows.

zepingouin avatar zepingouin commented on September 26, 2024

As stated above, I used this archived wiki as starting base. From there, you can download the patch for tools.cc file but as it is for squid-3.5.11 release, you need to manually edit the 3 lines by removing && !_SQUID_CYGWIN_ at the end. Use search in your editor to find these lines in tools.cc file.

Otherwise, I compiled squid-5.7 and you can download the archive at ftp://ftp.lunique.fr/squid-5.7.tar.bz2.
Open a Cygwin Terminal :

tar jxf squid-5.7.tar.bz2
cd squid-5.7

Follow the instructions starting at make install as stated above.

from squid-windows.

zepingouin avatar zepingouin commented on September 26, 2024

Edit for Squid 6.1:
Apply this patch to src/base/RandomUuid.cc
Use this command instead of mgr:info:
/bin/squid/squidclient cache_object://localhost/info

Edit for Squid 6.3 and above:
/bin/squid/squidclient cache_object://localhost/squid-internal-mgr/info

from squid-windows.

Eboubaker avatar Eboubaker commented on September 26, 2024

@zepingouin We dont have cygwin can you simply attach your modified compiled exe here in a zip?

from squid-windows.

zepingouin avatar zepingouin commented on September 26, 2024

@Eboubaker You can download compiled files at ftp://ftp.lunique.fr, however these exe files won't work without Cygwin libraries.

from squid-windows.

el-guapo-rick avatar el-guapo-rick commented on September 26, 2024

@ra-at-diladele-com

I have the same cygwin_exception::open_stackdumpfile: Dumping stack trace to squid.exe.stackdump
issue on Windows 10 after installing Squid Proxy for Windows (MSI installer).

You mentioned this:


Our repo does not include Squid itself, just the MSI installer files – you need to download the Squid from Squid developers at http://www.squid-cache.org/; then compile binaries and replace those we have in the repo with your versions. Then compile.


What does that mean?
The MSI installs Squid folder on the C drive.
You cannot compile a Unix package on Windows unless you are using Cygwin.
But it's a totally different way to install an app than just installing an MSI.

I would appreciate if you could clarify that.

Cheers!

from squid-windows.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.