Skip to content

Latest socat usuable for Windows 10, 11 & Server editions. [2024-12-11] Socat is a command line based utility that establishes two bidirectional byte streams and transfers data between them.

License

Notifications You must be signed in to change notification settings

valorisa/socat_1.8.0.2-for-Windows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Compiling socat 1.8.0.2 on Windows 11 using Cygwin

Step 1: Install Cygwin

  1. Download the Cygwin Installer:

    • Go to the official Cygwin website: https://www.cygwin.com/
    • Download the appropriate installer (setup-x86_64.exe for a 64-bit architecture).
  2. Run the Cygwin Installer:

    • Execute setup-x86_64.exe.
    • Choose an installation directory (e.g., C:\cygwin64).
    • Select a package cache directory (e.g., C:\cygwin64\packages).
  3. Select Necessary Packages:

    • When you reach the screen where you can select packages to install, search for and install the following packages:
      • gcc-core: For C compilation.
      • make: To manage build scripts.
      • automake: To generate configuration files.
      • autoconf: To configure sources.
      • libtool: For shared library management.
      • openssl-devel: For SSL/TLS support.

    You can use the search bar to find these packages more easily.

  4. Complete the Installation:

    • Continue with the installation by following the instructions.

Step 2: Download socat Source Code (Version 1.8.0.2)

  1. Open a Cygwin terminal:

    • You can find a shortcut in the Start menu or run C:\cygwin64\Cygwin.bat.
  2. Download the socat source code (version 1.8.0.2):

  wget http://www.dest-unreach.org/socat/download/socat-1.8.0.2.tar.gz
  1. Extract the source code:
    tar -xzf socat-1.8.0.2.tar.gz
    cd socat-1.8.0.2

Step 3: Compile socat

  1. Prepare the sources for compilation:

    ./configure

    If you encounter errors related to OpenSSL, ensure that openssl-devel is installed via Cygwin.

  2. Compile socat:

    make
  3. Verify the compilation:

    • Once the compilation is complete, you should have an executable socat.exe in the current directory (./src).

Step 4: Use socat.exe

  1. Copy socat.exe to an accessible directory from your Windows command line:

    cp src/socat.exe /cygdrive/c/path/to/your/desired/location/

    For example, if you want to copy socat.exe to C:\Program Files\socat, use:

    cp src/socat.exe /cygdrive/c/Program\ Files/socat/
  2. Add this directory to the system PATH to be able to use socat from anywhere:

    • Open Windows Settings.
    • Go to System > About > Advanced system settings.
    • Click on "Environment Variables".
    • In the "System variables" section, find and select the Path variable, then click "Edit".
    • Click "New" and add the path to the folder containing socat.exe (e.g., C:\Program Files\socat).
    • Click "OK" to close all windows.

Conclusion

You now have compiled socat version 1.8.0.2 under Windows 11 using Cygwin and obtained an executable socat.exe. You can use it directly from the Windows command line after adding its location to the PATH. This method provides maximum flexibility to adapt socat to your specific needs.

This will help other users understand and follow the process clearly.

About

Latest socat usuable for Windows 10, 11 & Server editions. [2024-12-11] Socat is a command line based utility that establishes two bidirectional byte streams and transfers data between them.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published