用 cctld工具创建带有国家代码的IP地址表
生活随笔
收集整理的這篇文章主要介紹了
用 cctld工具创建带有国家代码的IP地址表
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
用 cctld工具創建帶有國家代碼的IP地址表
cctld tools is creating IP addresses table with Country Code
項目地址 https://github.com/ryo/cctld
這個工具要用到 perl , 需要安裝 perl 模塊 , 用 PPM 安裝總是提示失敗,最后用 cpanm 安裝這兩個模塊成功
cpanm install Net::CIDR
cpanm install Net::CIDR::Set
---------------------------------------------
用 cpanm 安裝 perl 模塊
工具下載
perl ??? ?http://strawberryperl.com/
git? ??? ?https://git-scm.com/download/win
curl ??? ?https://curl.haxx.se/download.html
dmake ?? ?http://search.cpan.org/CPAN/authors/id/S/SH/SHAY/dmake-4.12.2.2.zip
?? ??? ?http://mirrors.163.com/cpan/authors/id/S/SH/SHAY/dmake-4.12.2.2.zip
cpanm?? ?http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7043.tar.gz
?? ??? ?
安裝 Git , 要用到它的 mingw32 和相關的 DLL 動態庫 , 設置 "C:\Program Files\Git\mingw32\bin" 為環境變量
安裝 perl , 設置 C:\web\perl\ 為環境變量
解壓 CURL , 解壓后的文件釋放到 c:\windows
解壓 dmake-4.12.2.2.zip , 把 startup 文件夾和 dmake.exe 文件放入 C:\web\perl\bin
把這些做完之后 , 就可以安裝 cpanm
如果用這樣的命令安裝 ( 具體的 https://github.com/miyagawa/cpanminus )
curl -L https://cpanmin.us | perl - App::cpanminus
如果安裝失敗或者安裝后不能用 , 用 dmake 編譯安裝 cpanm
解壓 App-cpanminus-1.7043.tar.gz , 在 cmd 進入這個目錄 , 執行下面的命令
??? perl Makefile.PL
??? dmake test
??? dmake install
到此可以用 cpanm 安裝 perl 模塊了
轉載于:https://www.cnblogs.com/yisuo/p/8811049.html
總結
以上是生活随笔為你收集整理的用 cctld工具创建带有国家代码的IP地址表的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: non-overlapping-inte
- 下一篇: ISO七层模型详解