2015-06-09 7 views
5

मैं एक डॉकर छवि स्थापित कर रहा हूं जिसके लिए स्थानीयकरण समर्थन की आवश्यकता है। मुझे this thread पर टिप्पणी # 21 के अनुसार pt_BR लोकेल को पैच करने की भी आवश्यकता है। तो क्या मैं मूल रूप से कर रहा हूँ उल्लेख thread के अनुसार pt_BR वापस सेंटोस 7 डॉकर छवि और लोकेल संकलन

  • लापता स्थानों मिल संकलित करने के लिए

    • पुनर्स्थापना glibc है।

    लेकिन जब मैं स्थानीय रूप से चलाता हूं तो मुझे संकलन त्रुटियां मिलती हैं। इसलिए मैंने pt_BR लोकेल को फिर से संकलित करने का प्रयास किया, यह सोचकर कि यह मेरी स्रोत फ़ाइल के साथ कुछ हो सकता है लेकिन मुझे अभी भी वही त्रुटियां मिलती हैं।

    क्या मुझे/usr/share/i18n/locales में फ़ाइलों का उपयोग करके लोकेल को पुन: संकलित करने में सक्षम नहीं होना चाहिए?

    आप नीचे अधिक जानकारी के

    Dockerfile

    FROM centos:7 
    RUN yum reinstall -q -y glibc-common 
    RUN cp /usr/share/i18n/locales/pt_BR pt_BR_abnt\.src 
    RUN mkdir /usr/lib/locale/pt_BR_utf8_abnt 
    RUN localedef --verbose -c -i pt_BR_abnt.src -f UTF-8 /usr/lib/locale pt_BR_utf8_abnt 
    

    मिल जाएगा त्रुटियों

    pt_BR_abnt.src:22: non-symbolic character value should not be used 
    pt_BR_abnt.src:23: non-symbolic character value should not be used 
    pt_BR_abnt.src:24: non-symbolic character value should not be used 
    pt_BR_abnt.src:26: non-symbolic character value should not be used 
    pt_BR_abnt.src:29: non-symbolic character value should not be used 
    pt_BR_abnt.src:30: non-symbolic character value should not be used 
    pt_BR_abnt.src:31: non-symbolic character value should not be used 
    pt_BR_abnt.src:32: non-symbolic character value should not be used 
    pt_BR_abnt.src:34: non-symbolic character value should not be used 
    pt_BR_abnt.src:35: non-symbolic character value should not be used 
    pt_BR_abnt.src:36: non-symbolic character value should not be used 
    pt_BR_abnt.src:37: non-symbolic character value should not be used 
    pt_BR_abnt.src:38: non-symbolic character value should not be used 
    pt_BR_abnt.src:39: non-symbolic character value should not be used 
    pt_BR_abnt.src:40: non-symbolic character value should not be used 
    pt_BR_abnt.src:41: non-symbolic character value should not be used 
    pt_BR_abnt.src:42: non-symbolic character value should not be used 
    pt_BR_abnt.src:43: non-symbolic character value should not be used 
    pt_BR_abnt.src:44: non-symbolic character value should not be used 
    pt_BR_abnt.src:49: non-symbolic character value should not be used 
    /usr/share/i18n/locales/iso14651_t1:3: non-symbolic character value should not be used 
    pt_BR_abnt.src:76: non-symbolic character value should not be used 
    /usr/share/i18n/locales/pt_PT:49: non-symbolic character value should not be used 
    /usr/share/i18n/locales/i18n:1425: non-symbolic character value should not be used 
    /usr/share/i18n/locales/i18n:1674: non-symbolic character value should not be used 
    /usr/share/i18n/locales/i18n:1719: non-symbolic character value should not be used 
    /usr/share/i18n/locales/i18n:1756: non-symbolic character value should not be used 
    /usr/share/i18n/locales/pt_PT:56: non-symbolic character value should not be used 
    /usr/share/i18n/locales/translit_neutral:10: non-symbolic character value should not be used 
    /usr/share/i18n/locales/translit_neutral:11: non-symbolic character value should not be used 
    /usr/share/i18n/locales/translit_neutral:12: non-symbolic character value should not be used 
    /usr/share/i18n/locales/translit_neutral:13: non-symbolic character value should not be used 
    /usr/share/i18n/locales/translit_neutral:14: non-symbolic character value should not be used 
    /usr/share/i18n/locales/translit_neutral:15: non-symbolic character value should not be used 
    /usr/share/i18n/locales/translit_neutral:16: non-symbolic character value should not be used 
    /usr/share/i18n/locales/translit_neutral:17: non-symbolic character value should not be used 
    LC_NAME: field `name_gen' not defined 
    LC_NAME: field `name_mr' not defined 
    LC_NAME: field `name_mrs' not defined 
    LC_NAME: field `name_miss' not defined 
    LC_NAME: field `name_ms' not defined 
    LC_ADDRESS: field `country_name' not defined 
    LC_ADDRESS: field `country_post' not defined 
    LC_ADDRESS: field `country_car' not defined 
    LC_ADDRESS: field `country_isbn' not defined 
    LC_ADDRESS: field `lang_name' not defined 
    LC_ADDRESS: field `lang_term' not defined 
    LC_ADDRESS: field `lang_ab' not defined 
    LC_IDENTIFICATION: field `audience' not defined 
    LC_IDENTIFICATION: field `application' not defined 
    LC_IDENTIFICATION: field `abbreviation' not defined 
    LC_IDENTIFICATION: no identification for category `LC_MEASUREMENT' 
    LC_CTYPE: table for class "upper": 1756 bytes 
    LC_CTYPE: table for class "lower": 1756 bytes 
    LC_CTYPE: table for class "alpha": 4320 bytes 
    LC_CTYPE: table for class "digit": 600 bytes 
    LC_CTYPE: table for class "xdigit": 600 bytes 
    LC_CTYPE: table for class "space": 856 bytes 
    LC_CTYPE: table for class "print": 5976 bytes 
    LC_CTYPE: table for class "graph": 5976 bytes 
    LC_CTYPE: table for class "blank": 856 bytes 
    LC_CTYPE: table for class "cntrl": 664 bytes 
    LC_CTYPE: table for class "punct": 4824 bytes 
    LC_CTYPE: table for class "alnum": 4320 bytes 
    LC_CTYPE: table for class "combining": 3152 bytes 
    LC_CTYPE: table for class "combining_level3": 2832 bytes 
    LC_CTYPE: table for map "toupper": 16924 bytes 
    LC_CTYPE: table for map "tolower": 15388 bytes 
    LC_CTYPE: table for map "totitle": 16924 bytes 
    LC_CTYPE: table for width: 26712 bytes 
    
  • +1

    आपके पास http://jaredmarkell.com/docker-and-locales/ पर डॉकर में लोकेल पर एक बहुत अच्छी पोस्ट है, यहां '# लोकल सेट करें रन लोकेल-जेन en_US.UTF- 8 ENV LANG en_US.UTF-8 ENV LANGUAGE en_US: en ENV LC_ALL en_US.UTF-8' – user2915097

    +0

    धन्यवाद लेकिन लोकेल सेट करना समस्या नहीं है। मुझे एक संकलन में समस्याएं आ रही हैं। – Grasshopper

    +0

    यदि आप अपने होस्ट पर संकलित करते हैं तो यह काम करता है? – user2915097

    उत्तर

    3

    तो थोड़ा और अधिक खुदाई मैं --quiet कहा कि पता चला के बाद, जो केवल एफ की रिपोर्ट करेगा अटल त्रुटियां, मुझे किसी समस्या के बिना pt_BR लोकेल संकलित करने की अनुमति देता है।

    +0

    मुझे आश्चर्य है कि यह वर्बोज़ विकल्प – sebelk

    +0

    के साथ क्यों विफल रहता है मुझे लगता है कि समस्या स्वयं संकलन नहीं है, लेकिन जिस तरह से डॉकर बिल्ड निर्धारित करता है कि यह एक त्रुटि थी। – Grasshopper

    +0

    आपके पास '' '--quite''' के बजाय एक टाइपो है, यह' '' --quiet''' होना चाहिए –

    संबंधित मुद्दे