1 2 Previous Next 25 Replies Latest reply: Feb 2, 2011 4:02 PM by Marek Goldmann RSS

    Missing deps for boxgrinder

    Sanjay Arora Newbie

      Hello

       

      Installed boxgrinder repo...I am using Centos 5.x...i386...getting ...

       

      No package rpmdevtools available.

      No package libguestfs available.

      No package ruby-libguestfs available.

      No package guestfish available.

      No package rubygems available.

       

      Finished Dependency Resolution

      appliance-tools-004.5-1.el5.noarch from boxgrinder-noarch has depsolving problems

        --> Missing Dependency: qemu-img is needed by package appliance-tools-004.5-1.el5.noarch (boxgrinder-noarch)

      Error: Missing Dependency: qemu-img is needed by package appliance-tools-004.5-1.el5.noarch (boxgrinder-noarch)

      You could try using --skip-broken to work around the problem

      You could try running: package-cleanup --problems

                              package-cleanup --dupes

                              rpm -Va --nofiles --nodigest

       

      My yum.repos.d

       

      [root@domU-12-31-39-0F-89-45 yum.repos.d]# ls

      CentOS-Base.repo   boxgrinder.repo   rpmforge-testing.repo

      CentOS-Media.repo  mirrors-rpmforge  rpmforge.repo

      [root@domU-12-31-39-0F-89-45 yum.repos.d]#

       

      My boxgrinder.repo

       

      [root@domU-12-31-39-0F-89-45 yum.repos.d]# cat boxgrinder.repo

      [boxgrinder]

      name=BoxGrinder repo - $basearch

      baseurl=http://repo.boxgrinder.org/boxgrinder/packages/rhel/5/RPMS/$basearch/

      enabled=1

      gpgcheck=0

       

      [boxgrinder-noarch]

      name=BoxGrinder repo - noarch

      baseurl=http://repo.boxgrinder.org/boxgrinder/packages/rhel/5/RPMS/noarch/

      enabled=1

      gpgcheck=0

       

      Please advise.

      With regards.

      Sanjay.

        • 1. Re: Missing deps for boxgrinder
          msavy Novice

          Hi Sanjay Arora,

           

          Did you remember to install the dependencies required on CentOS? I see you have inserted the BoxGrinder repos, but those error messages would imply that you haven't installed other requirements.

           

          yum -y install rubygems git parted wget rpmdevtools appliance-tools sudo libguestfs ruby-libguestfs guestfish yum-utils e2fsprogs

           

          <removed outdated info about EC2 tools>

           

           

          Also remember you need to ensure the EPEL repository is available YUM in order to pull all of the required packages!

          • 2. Re: Missing deps for boxgrinder
            msavy Novice

            To add to this, there was a small error in the installation instructions which said

             

            "You need also add BoxGrinder repo placing in the /etc/yum.repos.d/boxgrinder.conf "

             

            In fact this should be:

             

            /etc/yum.repos.d/boxgrinder.repo

             

            I shall correct this momentarily

            • 3. Re: Missing deps for boxgrinder
              Marek Goldmann Master

              Marc,

               

              ec2-ami-tools is not used anymore, euca2ools package should be pulled from the boxgrinder repository automatically. I just removed the section form the wiki page.

               

              Sanjay,

               

              With the new BoxGrinder 0.8.0 CentOS/RHEL 5 support will be better. Stay tuned!

               

              --Marek

              • 4. Re: Missing deps for boxgrinder
                Marek Goldmann Master

                Sanjay,

                 

                Have you added EPEL repository as described here?

                 

                --Marek

                • 5. Re: Missing deps for boxgrinder
                  msavy Novice

                  Ah yes, sorry Marek - I forgot about the EC2 RPM change, but I think the problem is with EPEL as I listed at the bottom of my post. 

                   

                  @Sanjay, here are the repos I have on my test platform for testing BoxGrinder on CENTOS5.5:

                   

                  ls /etc/yum.repos.d

                  boxgrinder.repo CentOS-Base.repo CentOS-Media.repo epel.repo epel-testing.repo

                  • 6. Re: Missing deps for boxgrinder
                    Sanjay Arora Newbie

                    Thanks Marek, Msavy

                     

                    I think it was corrected with the EPEL repo...I missed that. Installed boxgrinder build.

                     

                    Now I am getting error at installing S3 delivery plugin....EBS plugin though installed OK, so I can test on Amazon EC2 instance....shall revert.

                     

                    gem install boxgrinder-build-s3-delivery-plugin

                    ERROR:  Error installing boxgrinder-build-s3-delivery-plugin:

                        activesupport requires Ruby version >= 1.8.7

                     

                    Installed Packages

                    ruby.i386       1.8.5-5.el5_4.8                           installed 

                    • 7. Re: Missing deps for boxgrinder
                      msavy Novice

                      Hi Sanjay,

                       

                      Do a ruby --version

                       

                      I suspect you have ruby 1.8.6 -- in which case you need to upgrade to 1.8.7

                      • 8. Re: Missing deps for boxgrinder
                        Marek Goldmann Master

                        Sanjay,

                         

                        Most pobably you have activesupport installed for Rails 3. If that's true - please uninstall that gem and go with latest 2.x version. Please do:

                         

                        rpm -qa | grep rubygem

                        gem list

                         

                        So I can see what's installed.

                         

                        Thanks!

                         

                        --Marek

                        • 9. Re: Missing deps for boxgrinder
                          Sanjay Arora Newbie

                          I am installing on a Centos AMI instance, just FYI. Appreciate the fast support.

                           

                          plugins]# rpm -qa | grep rubygem

                          rubygems-1.3.1-1.el5

                          plugins]# gem list

                           

                          *** LOCAL GEMS ***

                           

                          amazon-ec2 (0.9.17)

                          boxgrinder-build (0.7.1)

                          boxgrinder-build-centos-os-plugin (0.0.6)

                          boxgrinder-build-ebs-delivery-plugin (0.0.4)

                          boxgrinder-build-ec2-platform-plugin (0.0.8)

                          boxgrinder-build-local-delivery-plugin (0.0.6)

                          boxgrinder-build-rhel-os-plugin (0.0.7)

                          boxgrinder-build-rpm-based-os-plugin (0.0.10)

                          boxgrinder-core (0.1.5)

                          commander (4.0.3)

                          hashery (1.4.0)

                          highline (1.6.1)

                          http_connection (1.4.0)

                          open4 (1.0.1)

                          uuidtools (2.1.1)

                          xml-simple (1.0.14)

                          plugins]#

                          • 10. Re: Missing deps for boxgrinder
                            Sanjay Arora Newbie

                            msavy

                             

                            Its lower than that....

                             

                            Installed Packages

                            ruby.i386       1.8.5-5.el5_4.8                           installed 

                             

                            but yum is not updating anymore.....its case of either a dependency....or something else...but system is updated fully...see updation below:

                             

                            plugins]# yum -y update

                            Loaded plugins: fastestmirror

                            Loading mirror speeds from cached hostfile

                            * addons: mirror.linux.duke.edu

                            * base: mirror.rackspace.com

                            * epel: mirror.vcu.edu

                            * extras: mirror.umoss.org

                            * updates: mirror.rackspace.com

                            Setting up Update Process

                            No Packages marked for Update

                            • 11. Re: Missing deps for boxgrinder
                              Marek Goldmann Master

                              Sanjay,

                               

                              I see you installed BoxGrinder using gem, not RPM. Using RPM is highly recommended. I worked on CentOS/RHEL 5 support lately for new BoxGrinder 0.8.0, so it should work smoothly, but you need to use our nightly repo. Be aware that the command line interface and appliance definition file changed a bit.

                               

                              packages:

                                includes:

                                  - something

                               

                              to:

                               

                              packages:

                                - something

                               

                              Use boxgrinder command instead of boxgrinder-build. Execute boxgrinder help build for more info. It's still undocumented, because 0.8.0 is not released, yet.

                               

                              If you have some time, please wait for 0.8.0 – it should be days. Hopefully I can work on it today.

                               

                              --Marek

                              • 12. Re: Missing deps for boxgrinder
                                Sanjay Arora Newbie

                                Marek

                                 

                                I did not get the rpm in the repo when I used yum...so I assumed that was for fedora only & not for el.

                                 

                                Just give me commands for removing all installed gems and installing via yum...I'll do it...

                                 

                                but its nothing urgent...I just wanted my server on EC2 to be installed using a fresh install & not existing AMI....and your project is great for that...as far as I can see...thanks.

                                 

                                if you have time, pl revert, else I can wait.

                                 

                                With regards.

                                Sanjay.

                                • 13. Re: Missing deps for boxgrinder
                                  Sanjay Arora Newbie

                                  Ah...can you give me the repo file for your nightly repo...i'll add that

                                  • 14. Re: Missing deps for boxgrinder
                                    Marek Goldmann Master

                                    Sanjay,

                                     

                                    The repository information is located here, just follow the steps. Please change the path from fedora/14 to rhel/5. To remove all gems use this command: gem list | cut -d" " -f1 | xargs gem uninstall -aIx

                                     

                                    Thanks for the kind words!

                                     

                                    HTH

                                     

                                    --Marek

                                    1 2 Previous Next