Comments (13)
It is same as #95
from squid-windows.
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.
from squid-windows.
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.
from squid-windows.
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.
Do you have a tip for me, what I do wrong?
from squid-windows.
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.
@zepingouin Bro. Can you please share your compiled version. or explain what to do in tools.cc
file?
from squid-windows.
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.
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.
@zepingouin We dont have cygwin can you simply attach your modified compiled exe here in a zip?
from squid-windows.
@Eboubaker You can download compiled files at ftp://ftp.lunique.fr
, however these exe files won't work without Cygwin libraries.
from squid-windows.
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)
- Not work in win10 21H2
- squid ignores default DNS servers HOT 4
- Squid 3.5.27 for windows - Squid close proxy port with errors
- Enable X-Forward-For HOT 1
- Thank you for the great product!
- How to Install Squid 3.5.28 | Squid 4.14 for Windows not working on Windows Server
- SSL Bumping may cause an Unreachable Network and/or certificate issues HOT 1
- Under Windows fail to setup cache dir HOT 2
- Download Squid for Windows 3.5.28? HOT 1
- THIS PROJECT IS DEAD AND IT DOESN'T WORK ON WINDOWS HOT 8
- Squid 4.14 and helpers use 100% of CPU HOT 4
- ssl_crtd.exe is missing from Windows installer? HOT 2
- Linux Lite Version (squid-openssl) Does Not Require Certificate For Client - Request, Can We have that on your builds for windows? HOT 1
- You have too many 'http_port' , The limit is 128 HTTP ports HOT 3
- Squid for Windows 4.14 not working on Windows Server 2019 HOT 10
- [Question] Possible to use network interface name instead of IP address?
- Install without Administrator rights
- Squid 4.14 installed on Windows 10 from MSI is missing cygcrypt-2.dll HOT 17
- Is it possible run squid-windows service on 'Network Service' Logon ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from squid-windows.