pkgin installation problem (NetBSD)

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I just installed NetBSD 7.1.1 (i386) on my old laptop.



During the installation, I could not install pgkin (I don't know why), so I skipped it and now I have a NetBSD 7.1.1 installed on my laptop without pkgin.



My problem is "How to install pkgin on NetBSD (i386) ?"



I found this (Click) tutorial and I followed it:



I tried :



#export PKG_PATH="http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/6.0_BETA_current/All/"
# pkg_add -v pkgin


And I got :



pkg_add: Can't process ftp://ftp.netbsd.org:80/pub/pkgsrc/packages/NetBSD/amd64/6.0_BETA_current/All/%0d/pkgin*: Not Found
pkg_add: no pkg found for 'pkgin',sorry.
pkg_add: 1 package addition failed


I know this is a wrong command because this ftp address is for amd64 while my laptop and NetBSD is i386. (I can't find the correct command for i386 )



I also followed instructions of pkgin.net (Click), and I did



git clone https://github.com/NetBSDfr/pkgin.git


on another computer and copied the output (which is a folder name pkgin) to my NetBSD (my NetBSD doesn't have 'git' command)



and then I did :



./configure --prefix=/usr/pkg --with-libraries=/usr/pkg/lib --with-includes=/usr/pkg/include


and then :



make


but I got :



# compile pkgin/summary.o
gcc -O2 -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Werror -DPKGIN_VERSION=""0.9.4 for NetBSD-7.1.1 i386"" -DNETBSD -g -DLOCALBASE="/usr/local" -DPKG_SYSCONFDIR="/usr/local/etc" -DPKG_DBDIR=""/var/db/pkg"" -DDEF_LOG_DIR=""/var/db/pkg"" -DPKGIN_DB="/var/db/pkgin" -DPKGTOOLS="/usr/local/sbin" -DHAVE_CONFIG_H -D_LARGEFILE_SOURCE -D_LARGE_FILES -DCHECK_MACHINE_ARCH="i386" -Iexternal -I. -I/usr/local/include -c summary.c
*** Error code 1

Stop.
make: stopped in /root/pkgin


I think this error is because of the dependencies. (which is mentioned in pkgin.net) but still, don't know how to install those dependencies. (i am really new to UNIX)
Can anyone help me, please ???



at last sorry for my bad English (English is not my primary language)



EDIT:
I found "http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/7.1.1/All/"
but it still says



no pkg fond for 'pkgin', sorry


SOLVED:



Problem solved by writing 7.1 instead of 7.1.1







share|improve this question


























    up vote
    1
    down vote

    favorite












    I just installed NetBSD 7.1.1 (i386) on my old laptop.



    During the installation, I could not install pgkin (I don't know why), so I skipped it and now I have a NetBSD 7.1.1 installed on my laptop without pkgin.



    My problem is "How to install pkgin on NetBSD (i386) ?"



    I found this (Click) tutorial and I followed it:



    I tried :



    #export PKG_PATH="http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/6.0_BETA_current/All/"
    # pkg_add -v pkgin


    And I got :



    pkg_add: Can't process ftp://ftp.netbsd.org:80/pub/pkgsrc/packages/NetBSD/amd64/6.0_BETA_current/All/%0d/pkgin*: Not Found
    pkg_add: no pkg found for 'pkgin',sorry.
    pkg_add: 1 package addition failed


    I know this is a wrong command because this ftp address is for amd64 while my laptop and NetBSD is i386. (I can't find the correct command for i386 )



    I also followed instructions of pkgin.net (Click), and I did



    git clone https://github.com/NetBSDfr/pkgin.git


    on another computer and copied the output (which is a folder name pkgin) to my NetBSD (my NetBSD doesn't have 'git' command)



    and then I did :



    ./configure --prefix=/usr/pkg --with-libraries=/usr/pkg/lib --with-includes=/usr/pkg/include


    and then :



    make


    but I got :



    # compile pkgin/summary.o
    gcc -O2 -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Werror -DPKGIN_VERSION=""0.9.4 for NetBSD-7.1.1 i386"" -DNETBSD -g -DLOCALBASE="/usr/local" -DPKG_SYSCONFDIR="/usr/local/etc" -DPKG_DBDIR=""/var/db/pkg"" -DDEF_LOG_DIR=""/var/db/pkg"" -DPKGIN_DB="/var/db/pkgin" -DPKGTOOLS="/usr/local/sbin" -DHAVE_CONFIG_H -D_LARGEFILE_SOURCE -D_LARGE_FILES -DCHECK_MACHINE_ARCH="i386" -Iexternal -I. -I/usr/local/include -c summary.c
    *** Error code 1

    Stop.
    make: stopped in /root/pkgin


    I think this error is because of the dependencies. (which is mentioned in pkgin.net) but still, don't know how to install those dependencies. (i am really new to UNIX)
    Can anyone help me, please ???



    at last sorry for my bad English (English is not my primary language)



    EDIT:
    I found "http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/7.1.1/All/"
    but it still says



    no pkg fond for 'pkgin', sorry


    SOLVED:



    Problem solved by writing 7.1 instead of 7.1.1







    share|improve this question
























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I just installed NetBSD 7.1.1 (i386) on my old laptop.



      During the installation, I could not install pgkin (I don't know why), so I skipped it and now I have a NetBSD 7.1.1 installed on my laptop without pkgin.



      My problem is "How to install pkgin on NetBSD (i386) ?"



      I found this (Click) tutorial and I followed it:



      I tried :



      #export PKG_PATH="http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/6.0_BETA_current/All/"
      # pkg_add -v pkgin


      And I got :



      pkg_add: Can't process ftp://ftp.netbsd.org:80/pub/pkgsrc/packages/NetBSD/amd64/6.0_BETA_current/All/%0d/pkgin*: Not Found
      pkg_add: no pkg found for 'pkgin',sorry.
      pkg_add: 1 package addition failed


      I know this is a wrong command because this ftp address is for amd64 while my laptop and NetBSD is i386. (I can't find the correct command for i386 )



      I also followed instructions of pkgin.net (Click), and I did



      git clone https://github.com/NetBSDfr/pkgin.git


      on another computer and copied the output (which is a folder name pkgin) to my NetBSD (my NetBSD doesn't have 'git' command)



      and then I did :



      ./configure --prefix=/usr/pkg --with-libraries=/usr/pkg/lib --with-includes=/usr/pkg/include


      and then :



      make


      but I got :



      # compile pkgin/summary.o
      gcc -O2 -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Werror -DPKGIN_VERSION=""0.9.4 for NetBSD-7.1.1 i386"" -DNETBSD -g -DLOCALBASE="/usr/local" -DPKG_SYSCONFDIR="/usr/local/etc" -DPKG_DBDIR=""/var/db/pkg"" -DDEF_LOG_DIR=""/var/db/pkg"" -DPKGIN_DB="/var/db/pkgin" -DPKGTOOLS="/usr/local/sbin" -DHAVE_CONFIG_H -D_LARGEFILE_SOURCE -D_LARGE_FILES -DCHECK_MACHINE_ARCH="i386" -Iexternal -I. -I/usr/local/include -c summary.c
      *** Error code 1

      Stop.
      make: stopped in /root/pkgin


      I think this error is because of the dependencies. (which is mentioned in pkgin.net) but still, don't know how to install those dependencies. (i am really new to UNIX)
      Can anyone help me, please ???



      at last sorry for my bad English (English is not my primary language)



      EDIT:
      I found "http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/7.1.1/All/"
      but it still says



      no pkg fond for 'pkgin', sorry


      SOLVED:



      Problem solved by writing 7.1 instead of 7.1.1







      share|improve this question














      I just installed NetBSD 7.1.1 (i386) on my old laptop.



      During the installation, I could not install pgkin (I don't know why), so I skipped it and now I have a NetBSD 7.1.1 installed on my laptop without pkgin.



      My problem is "How to install pkgin on NetBSD (i386) ?"



      I found this (Click) tutorial and I followed it:



      I tried :



      #export PKG_PATH="http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/6.0_BETA_current/All/"
      # pkg_add -v pkgin


      And I got :



      pkg_add: Can't process ftp://ftp.netbsd.org:80/pub/pkgsrc/packages/NetBSD/amd64/6.0_BETA_current/All/%0d/pkgin*: Not Found
      pkg_add: no pkg found for 'pkgin',sorry.
      pkg_add: 1 package addition failed


      I know this is a wrong command because this ftp address is for amd64 while my laptop and NetBSD is i386. (I can't find the correct command for i386 )



      I also followed instructions of pkgin.net (Click), and I did



      git clone https://github.com/NetBSDfr/pkgin.git


      on another computer and copied the output (which is a folder name pkgin) to my NetBSD (my NetBSD doesn't have 'git' command)



      and then I did :



      ./configure --prefix=/usr/pkg --with-libraries=/usr/pkg/lib --with-includes=/usr/pkg/include


      and then :



      make


      but I got :



      # compile pkgin/summary.o
      gcc -O2 -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Werror -DPKGIN_VERSION=""0.9.4 for NetBSD-7.1.1 i386"" -DNETBSD -g -DLOCALBASE="/usr/local" -DPKG_SYSCONFDIR="/usr/local/etc" -DPKG_DBDIR=""/var/db/pkg"" -DDEF_LOG_DIR=""/var/db/pkg"" -DPKGIN_DB="/var/db/pkgin" -DPKGTOOLS="/usr/local/sbin" -DHAVE_CONFIG_H -D_LARGEFILE_SOURCE -D_LARGE_FILES -DCHECK_MACHINE_ARCH="i386" -Iexternal -I. -I/usr/local/include -c summary.c
      *** Error code 1

      Stop.
      make: stopped in /root/pkgin


      I think this error is because of the dependencies. (which is mentioned in pkgin.net) but still, don't know how to install those dependencies. (i am really new to UNIX)
      Can anyone help me, please ???



      at last sorry for my bad English (English is not my primary language)



      EDIT:
      I found "http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/7.1.1/All/"
      but it still says



      no pkg fond for 'pkgin', sorry


      SOLVED:



      Problem solved by writing 7.1 instead of 7.1.1









      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 3 at 19:36

























      asked Jan 3 at 15:08









      David.h

      154




      154




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          I think you should use http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/7.1/ - because you installed i386 and version 7.1.



          So:



          export PKG_PATH=http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/7.1/
          pkg_add -v pkgin





          share|improve this answer




















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );








             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f414569%2fpkgin-installation-problem-netbsd%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            1
            down vote



            accepted










            I think you should use http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/7.1/ - because you installed i386 and version 7.1.



            So:



            export PKG_PATH=http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/7.1/
            pkg_add -v pkgin





            share|improve this answer
























              up vote
              1
              down vote



              accepted










              I think you should use http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/7.1/ - because you installed i386 and version 7.1.



              So:



              export PKG_PATH=http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/7.1/
              pkg_add -v pkgin





              share|improve this answer






















                up vote
                1
                down vote



                accepted







                up vote
                1
                down vote



                accepted






                I think you should use http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/7.1/ - because you installed i386 and version 7.1.



                So:



                export PKG_PATH=http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/7.1/
                pkg_add -v pkgin





                share|improve this answer












                I think you should use http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/7.1/ - because you installed i386 and version 7.1.



                So:



                export PKG_PATH=http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/7.1/
                pkg_add -v pkgin






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 3 at 19:25









                uzsolt

                1,352613




                1,352613






















                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f414569%2fpkgin-installation-problem-netbsd%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Bahrain

                    Postfix configuration issue with fips on centos 7; mailgun relay