移植演算法編譯環境到linux【redhat9.0如何顯示漢字】

來源:互聯網
上載者:User

1.導資料 mssql-mysql

2.mysql-文本  select keywords,publishTime from paper  into outfile "c:/a.txt" character set gbk;

++++++++++++++++++++++++++++++++++++++ 

3. red hat 9.0 linux 英文版如何顯示漢字

3.1 安裝 漢字相關包,在redhat9.0安裝盤3上面

 9.0不在第一張盤上,在第三張盤上.rpm包名分別為:

  ttfonts-zh_CN-2.12-1.noarch.rpm(簡體中文)

  ttfonts-zh_TW-2.11-19.noarch.rpm (繁體中文)

 安裝辦法類似

 

  1. mount /dev/cdrom  
  2. cd /media/cdrom/RedHat/RPMS/  
  3. rpm -ivh ttfonts-zh_CN-2.14-6.noarch.rpm  

 3.2 安裝chzon

參考資料  http://blog.chinaunix.net/space.php?uid=20518154&do=blog&id=1656187

 

 #cp  –r  /mnt/win  /usr/src (拷貝zhcon檔案到/usr/src目錄下)

6.#cd /usr/src

7.#tar zxvf zhcon-0.2.5.tar.gz  (解壓檔案,檔案解壓後會有一個目錄:zhcon-0.2.5)

8.#gzip –d zhcon-0.2.5-to-0.2.6.diff.gz (解壓補丁檔案,該檔案解壓後,.gz尾碼沒有了)

9.#cd  zhcon-0.2.5

10.# patch  –p1<.../zhcon-0.2.5-to-0.2.6.diff (打補丁檔案,其中..為上級目錄的意思,p1是指補丁檔案與被補丁檔案的目錄差幾層,差一層為1,兩層為2,同一級目錄中為0)

11.#./configure  --prefix=/home/root (配置安裝程式及相關檔案,其中—prefix=後面的/home/root也就是zhcon安裝的目錄,可自行指定,也可不加此參數。)

12.#make (編譯檔案)

13.#make  install(安裝檔案)

14.#zhcon (啟動後進入純字元介面運行zhcon即可在文本介面下看到中文了,都說AS4.0中執行時要用--utf8,但我在執行時沒有用參數,一樣可以執行的,反而加了參數倒不顯示中文了)

註:如果zhcon不能執行,可能需要輸出路徑,例本例中使用:export PATH=$PATH:/home/root/bin(注意大小寫)即可。/home/root/即為設定檔時指定的目錄。編譯過程中如有如下提示,則說明未安裝gcc或C語言等的編譯器。

Checking for gcc…….no

Checking for cc…….no

Checking for cl…….no

No acceptable Ccompiler found in $PATH

 注意:zhcon 只能支援gb2312型編碼,不支援utf-8

 

 

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.