• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Dev branch 1.5.9.79 Installing package: php-gettext.............................Failed! has to use -X switch to get it to work.

    Scheduled Pinned Locked Moved Solved
    Bug Reports
    5
    26
    14.0k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      Fog_Newb
      last edited by Fog_Newb

      I had to reinstall Ubuntu fresh and along with it FOG. The install wouldn’t complete. It seems to fail finding php-gettext. I installed that package manually without any errors and\set the locales.

      php-php-gettext is already the newest version (1.0.12-4).

      I ran the FOG installer again but ran into the same error.

      UPDATE: After searching this forum, (IKR?), someone else ran into a similar problem and there is a workaround.

      https://forums.fogproject.org/topic/6781/php5-gettext/2?_=1619910130139

      Thanks

      fog_error_1.5.9.79.log

      Tom ElliottT 1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by

        @Fog_Newb Thanks for letting us know. Seems to be an issue with Ubuntu Hirsute 21.04. Obviously we haven’t been playing with this much yet. Will see what we can do.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 0
        • S
          Sebastian Roth Moderator
          last edited by

          @Tom-Elliott Do you know if php-gettext is in use anymore? Don’t really think it is because:

          • It’s only part of the Ubuntu/Debian/Mint packages variable but not for other distros.
          • Ubuntu 20.04 does not install it anyway:
           * Skipping package: php-gettext...............................(Does not exist)
          

          So I’d think we better remove it from the packages list because Ubuntu 21.04 fails to skip it because it re-introduced php-php-gettext. What do you think?

          Those package name transitions are a real pain.

          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

          F Tom ElliottT 2 Replies Last reply Reply Quote 0
          • F
            Fog_Newb @Sebastian Roth
            last edited by Fog_Newb

            @sebastian-roth said in Dev branch 1.5.9.79 Installing package: php-gettext.............................Failed! has to use -X switch to get it to work.:

            @Tom-Elliott Do you know if php-gettext is in use anymore? Don’t really think it is because:

            • It’s only part of the Ubuntu/Debian/Mint packages variable but not for other distros.
            • Ubuntu 20.04 does not install it anyway:
             * Skipping package: php-gettext...............................(Does not exist)
            

            So I’d think we better remove it from the [packages list]

            Thanks

            Could I have edited config.sh in a text editor, removed php-gettext or edited to read php-php-gettext on the packages= line, saved it and re-run the setup without errors? I should just try it and see but not able to ATM.

            1 Reply Last reply Reply Quote 0
            • S
              Sebastian Roth Moderator
              last edited by Sebastian Roth

              @Fog_Newb I did give it a try already - removed php-gettext from the packages line. Surely will make the installer run all the way to the end. But I am not exactly sure of the consequences.

              Give it a go when you have time and we’ll see what Tom thinks about it.

              You can always install/remove the package and adjust /opt/fog/.fogsettings later on as well. So there is no problem if you do this now.

              I am guessing that it might not be used at all or only if you install FOG with language support and switch to a different language.

              Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

              Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

              F 1 Reply Last reply Reply Quote 0
              • F
                Fog_Newb @Sebastian Roth
                last edited by Fog_Newb

                @sebastian-roth

                Okay. I will try it later. I was going to post this under Bug Reports initially but I wasn’t sure if something was up with my Ubuntu install. This is the first time I installed Desktop Ubuntu. I am a wicked newb and could not figure out how to properly make the EFI\ESP partition to EFI boot Ubuntu with the server install.

                1 Reply Last reply Reply Quote 0
                • Tom ElliottT
                  Tom Elliott @Sebastian Roth
                  last edited by

                  @sebastian-roth yes it is, almost everything is behind gettext.

                  All the text wrapped in _( and ) is using php gettext.

                  Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                  Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                  Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                  1 Reply Last reply Reply Quote 0
                  • S
                    Sebastian Roth Moderator
                    last edited by

                    @Tom-Elliott Are you sure? This has not been working in Ubuntu since a long time then. Last in 16.04 I think. What is the best way to test this?

                    Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                    Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                    Tom ElliottT 1 Reply Last reply Reply Quote 0
                    • Tom ElliottT
                      Tom Elliott @Sebastian Roth
                      last edited by

                      @sebastian-roth https://www.php.net/manual/en/book.gettext.php

                      Absolutely.

                      Of note, we would need the language files and binary of them for the text to reflect in the UI. Of course there may be something wrong with the implementation which I’ll admit I’m not very good with.

                      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                      Tom ElliottT 1 Reply Last reply Reply Quote 0
                      • Tom ElliottT
                        Tom Elliott @Tom Elliott
                        last edited by

                        @Fog_Newb @Sebastian-Roth I have updated the dev-branch and working-1.6 to what I hope should do better translation.

                        @Fog_Newb I will need some time to create an ubuntu 21.04 to find out about the gettext installation error.

                        Thank you for the report and information.

                        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                        F 1 Reply Last reply Reply Quote 0
                        • F
                          Fog_Newb @Tom Elliott
                          last edited by

                          This post is deleted!
                          1 Reply Last reply Reply Quote 0
                          • Tom ElliottT
                            Tom Elliott @Fog_Newb
                            last edited by Tom Elliott

                            @fog_newb This should be fixed in the latest.

                            Issue is ubuntu 21.04 is using php{ver}-common for php-gettext where in the past it was its own package. I updated the code to check for php{ver}-gettext which showed it as part of php{ver}-common and the install went through properly. Going to double check language packs download properly too.

                            Got the language-packs to install properly too.

                            Thank you,

                            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                            F 1 Reply Last reply Reply Quote 0
                            • F
                              Fog_Newb @Tom Elliott
                              last edited by

                              @tom-elliott

                              I tried the latest dev branch 1.5.9.85 and the same problem occurredfog_error_1.5.9.85.log .

                              Tom ElliottT 1 Reply Last reply Reply Quote 0
                              • Tom ElliottT
                                Tom Elliott @Fog_Newb
                                last edited by Tom Elliott

                                @fog_newb Please try again? After updating of course.

                                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                                Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                                F 1 Reply Last reply Reply Quote 0
                                • F
                                  Fog_Newb @Tom Elliott
                                  last edited by

                                  @tom-elliott

                                  The 1.5.9.86 install completed.

                                  • Skipping package: php7.4-gettext…(Does not exist)

                                  fog_error_1.5.9.86.log

                                  Tom ElliottT 1 Reply Last reply Reply Quote 0
                                  • Tom ElliottT
                                    Tom Elliott @Fog_Newb
                                    last edited by

                                    @fog_newb Yes, that’s the expected part.

                                    Because php-gettext is now part of the php7.4-common package, there’s not really a need to include it as part of the packages line.

                                    You should be good to go now.

                                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                                    Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                    Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                                    F 1 Reply Last reply Reply Quote 0
                                    • F
                                      Fog_Newb @Tom Elliott
                                      last edited by

                                      @tom-elliott

                                      Thank you

                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        Sebastian Roth Moderator
                                        last edited by Sebastian Roth

                                        @tom-elliott said in Dev branch 1.5.9.79 Installing package: php-gettext.............................Failed! has to use -X switch to get it to work.:

                                        Issue is ubuntu 21.04 is using php{ver}-common for php-gettext where in the past it was its own package.

                                        When I was looking at this I got the impression the new package is named php-php-gettext (see package repo).

                                        When searching for php-gettext in general (link to search) I find this:

                                        bionic (18.04LTS) (web): transitional dummy package for php-php-gettext [universe]
                                        1.0.12-0.1: all

                                        You are absolutely right, the PHP gettext module is now part of php7.4-common but the mentioned php-php-gettext provides some helper PHP/INC files - not sure if we need those.

                                        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                                        Tom ElliottT 1 Reply Last reply Reply Quote 0
                                        • Tom ElliottT
                                          Tom Elliott @Sebastian Roth
                                          last edited by

                                          @sebastian-roth in my testing language translation worked properly using the common provided version

                                          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                                          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                                          1 Reply Last reply Reply Quote 0
                                          • S
                                            Sebastian Roth Moderator
                                            last edited by

                                            @tom-elliott said in Dev branch 1.5.9.79 Installing package: php-gettext.............................Failed! has to use -X switch to get it to work.:

                                            in my testing language translation worked properly using the common provided version

                                            Then it’s all fine. Good that we don’t need that extra package anymore! 🙂

                                            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post

                                            244

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project