編譯安裝HTML Validator (Ubuntu Linux 32bit Firefox)

來源:互聯網
上載者:User

HTML Validator 是Firefox的一個擴充,用於離線的HTML語法錯誤檢查,安裝之後能即時顯示編寫的網頁是否符合Web標準。

 

HTML Validator  (Windows版) :

https://addons.mozilla.org/zh-CN/firefox/addon/249

 

在Ubuntu 10.04上,使用Firefox 3.6,安裝了html validator,無法使用。

提示“FATAL ERROR : The dynamicClibrary  contained in the extension file could not be found.”,

彈出這個頁面:http://users.skynet.be/mgueury/mozilla/no_tidy_lib.html

 

解決辦法:卸載html validator,安裝libstdc++5,再安裝html validator,即可。

libstdc++5 :http://packages.ubuntu.com/jaunty/i386/libstdc++5/download 

html validator : http://users.skynet.be/mgueury/mozilla/download.html

 

參考資料:http://users.skynet.be/mgueury/mozilla/faq.html#LINUX

 

//以下內容已到期。

 

 

,提示“HTML Validator 無法在Linux上使用。”

 

 

所以在Linux上需要下載原始碼,自己編譯安裝。

原始碼下載:
http://sourceforge.net/projects/htmlvalidator/files/

 

下面是在32位Ubuntu 9.10 Linux上編譯HTML Validator的步驟:1、下載htmlvalidator-0.8.5.8+svn65.tar.bz2 ,解壓縮,在 命令列 中定位到 /home/sink/Desktop/htmlvalidator-0.8.5.8

 輸入./configure

出錯,提示:

 checking for XPCOM... no
configure: WARNING: libxul not found, trying another
checking for XPCOM... no
configure: WARNING: firefox-xpcom not found, trying another
checking for XPCOM... no
configure: WARNING: iceape-xpcom not found, trying another
checking for XPCOM... no
configure: WARNING: iceweasel-xpcom not found, trying another
checking for XPCOM... no
configure: WARNING: mozilla-xpcom not found, trying another
checking for XPCOM... no
configure: WARNING: seamonkey-xpcom not found, trying another
checking for XPCOM... no
configure: error: xulrunner-xpcom not found
sink@sink-desktop:~/Desktop/htmlvalidator-0.8.5.8$

 

2、安裝 xulrunner-dev

在 新立得 中搜尋 xpcom ,安裝 xulrunner-1.9.1-dev
或者使用 命令 sudo apt-get install xulrunner-dev

 

3、 在 命令列 中定位到 /home/sink/Desktop/htmlvalidator-0.8.5.8 輸入./configure

順利通過。

4、 在 命令列 中定位到 /home/sink/Desktop/htmlvalidator-0.8.5.8 輸入make

順利通過。在 /home/sink/Desktop/htmlvalidator-0.8.5.8目錄中產生了一個檔案tidy_firefox_linux-gnu_i686_0.8.5.8.xpi ,大小為4.6MB。

5、啟動Firefox——檔案——開啟——/home/sink/Desktop/htmlvalidator-0.8.5.8/tidy_firefox_linux-gnu_i686_0.8.5.8.xpi

即可安裝。

 

6、安裝完畢重啟Firefox。效果如:

 

 

說明:

如果使用HTML Validator 官方網站 http://users.skynet.be/mgueury/mozilla/download.html 提供的編譯後的版本,裝上以後在ubuntu上提示http://users.skynet.be/mgueury/mozilla/no_tidy_lib.html

FATAL ERROR : The dynamic C library  contained in the extension file could not be found.

HTML Validator 官方網站上提供的版本如下,大小約為2MB:
Windows    0.858     Download HTML Validator for Windows     X     X     X
Linux 32 bits    0.858    Download HTML Validator for Linux 32bits     X     X     X
Linux 64 bits     0.858     Download HTML Validator for Linux 64bits     X     X     X
Mac OsX Intel     0.858     Download HTML Validator for Mac OsX Intel     X     X     X
Mac OSX PPC     0.858     Download HTML Validator for Mac OsX PPC     X     X     X
FreeBSD 5.1+     0.839     Download HTML Validator for FreeBSD 5.1+     X     X     
FreeBSD 6+     0.839     Download HTML Validator for FreeBSD 6+     X     X     
FreeBSD 7     0.858     Download HTML Validator for FreeBSD 7     X     X     X
OpenBSD 32 bits     0.858     Download HTML Validator for OpenBSD 32 bits     X     X     X
OpenBSD 64 bits     0.858     Download HTML Validator for OpenBSD 64 bits     X     X     X
Other platforms     0.7x     See here             
Source code (2009-04-17)    0.858     Download the source code            

 

我編譯的4.6MB的tidy_firefox_linux-gnu_i686_0.8.5.8.xpi 下載:http://files.cnblogs.com/sink_cup/tidy_firefox_linux-gnu_i686_0.8.5.8.xpi

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.