"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "README.win32" between
pacparser-1.3.8.tar.gz and pacparser-1.3.9.tar.gz

About: pacparser is a library to parse Proxy Auto-Config (PAC) files (incl. a pactester).

README.win32  (pacparser-1.3.8):README.win32  (pacparser-1.3.9)
This file is about the instructions to build (and use) pacparser on Windows. This file is about the instructions to build (and use) pacparser on Windows.
For general information on pacparser, please have a look at README in the same For general information on pacparser, please have a look at README in the same
directory. directory.
Building pacparser on Windows: Building pacparser on Windows:
----------------------------- -----------------------------
For compiling pacparser on Windows, you'll need MinGW (www.mingw.org) tools. For compiling pacparser on Windows, you'll need mingw64 tools, best downloaded f rom [msys2](http://www.msys2.org).
Detailed Instructions: * Install MinGW64 tools through [msys2](
https://github.com/msys2/msys2-installer/releases).
Set up tools: * Rename mingw32-make.exe to make.exe.
```
rename C:\msys64\mingw64\bin\mingw32-make.exe C:\msys64\mingw64\bin\make.exe
```
1. Install MinGW. Download the automated installer from here: * Add your MinGW directory's bin (`C:\msys64\mingw64\bin`) to your system path
http://sourceforge.net/projects/mingw/files/ variable.
Running this installer lets you select what component you want to install.
Default options (C-compiler and MinGW Development Toolkit) should work
fine.
2. Rename mingw32-make.exe to make.exe. * Install latest [python](http://www.python.org/). You'll need it to build pyth
rename C:\MinGW\bin\mingw32-make.exe C:\MinGW\bin\make.exe on module.
3. Add your MinGW directory's bin (C:\MinGW\bin) to your system path variable. * Now download pacparser source code tarball from [releases](
https://github.com/manugarg/pacparser/releases) and extract it somewhere,
say `C:\workspace`.
4. Install 7-zip to extract .tar.gz files, if you don't have an equivalent * Compile pacparser and create ditribution.
program already. ```
http://www.7-zip.org/download.html cd C:\workspace\pacparser-*
make -C src -f Makefile.win32 dist
```
5. Install latest python. You'll need it to build python module. * Compile pacparser python module and copy required files to a directory (dist).
http://www.python.org/getit/ ```
make -C src -f Makefile.win32 pymod-3.9
```
======== Done setting up tools ========== * Compile pacparser python module and copy required files to a directory (dist).
```
make -C src -f Makefile.win32 pymod-dist-3.9
```
6. Now download pacparser source code tarball from ## Using pacparser on Windows:
https://github.com/pacparser/pacparser/releases and extract it somewhere,
say C:\workspace.
7. Now extract the spidermonekey source tarball, js-*.tar.gz, located at ### In C programs:
src\spidermonkey\js-*.tar.gz inside the pacparser source directory.
8. Compile pacparser and create ditribution.
cd C:\workspace\pacparser-*
make -C src -f Makefile.win32 dist
9. Compile pacparser python module and copy required files to a directory
(dist).
make -C src -f Makefile.win32 pymod
Using pacparser on Windows:
* In C programs:
Make sure that you have pacparser.dll in the sytem path somewhere Make sure that you have pacparser.dll in the sytem path somewhere
(current directory would do just fine for testing purpose). (current directory would do just fine for testing purpose).
```
Change to your program's directory: Change to your program's directory:
=> cd c:\workspace\pacparser-1.2.1\examples => cd c:\workspace\pacparser-1.3.8\examples
Copy pacparser.dll here and compile your program: Copy pacparser.dll here and compile your program:
=> gcc -o pactest pactest.c -lpacparser -L. => gcc -o pactest pactest.c -lpacparser -L.
Run your program: Run your program:
=> pactest wpad.dat http://www.google.com www.google.com => pactest wpad.dat http://www.google.com www.google.com
'PROXY proxy1.manugarg.com:3128; PROXY proxy2.manugarg.com:3128; DIRECT' 'PROXY proxy1.manugarg.com:3128; PROXY proxy2.manugarg.com:3128; DIRECT'
```
* In python programs: ### In python programs:
Install pacparser python module by running install.py in the distribution Install pacparser python module by running install.py in the distribution
folder. You'll then be able to use pacparser python module in the following folder. You'll then be able to use pacparser python module in the following
manner: manner:
=> C:\python25\python ```python
=> python
>>> import pacparser >>> import pacparser
>>> pacparser.init() >>> pacparser.init()
>>> pacparser.parse_pac('examples/wpad.dat') >>> pacparser.parse_pac('examples/wpad.dat')
>>> pacparser.find_proxy('http://www.google.com', 'www.google.com') >>> pacparser.find_proxy('http://www.google.com', 'www.google.com')
'PROXY proxy1.manugarg.com:3128; PROXY proxy2.manugarg.com:3128; DIRECT' 'PROXY proxy1.manugarg.com:3128; PROXY proxy2.manugarg.com:3128; DIRECT'
>>> pacparser.cleanup() >>> pacparser.cleanup()
```
 End of changes. 18 change blocks. 
36 lines changed or deleted 37 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)