Wednesday, March 28, 2018

linux - Troubles installing KDE with pkgsrc

Im in school right now and I have taken two classes, Networking and Unix Development, that focus on C programming in Unix. Specifically we have been using NetBSD for our machines that we develop on (rather our programs must work on NetBSD). Well our school network has been really finicky as of late and I haven't been able to SSH in. I thought this would be the perfect time to create a NetBSD box of my own because 1)my programs must compile and run on NetBSD and 2)I really don't know how to manipulate/operate a Unix environment (although I understand the internal workings).



With that being said I set out on getting NetBSD working today since its my off day. I have learned a ton about operating NetBSD/Unix (I guess I never really knew much) but I am stuck on trying to install KDE right now. I would like to say that my Google searches were successful/resourceful but I am afraid they weren't. I don't know if what I was searching was to vague or not the right thing, but here I am looking for help.



I am using pkgsrc to install the binary of KDE 3.5.10. When I use pkg_add kde-3.5.10 it starts doing whatever it is supposed to do (I don't know the optional command args to make pkg_add report on what its doing). It seems to be working for ~5mins but then fails and gives the following errors:




  • pkg_add: Read error for lib/liblcms.so.1.0.18: Premature end of gzip compressed data: Input/output error


  • original MD5 checksum failed, not deleting: /usr/pkg/lib/liblcms.so.1.0.18

  • pkg_add: Couldn't remove /usr/pkg/lib/pkgconfig/lcms.pc

  • ...

  • pkg_add: Can't install dependency lcms>=1.12nb2

  • ...

  • pkg_add: 1 package additino failed



I really have not ideas what those errors mean. Any error that is ... is the same error as above but with a different path/dependency (let me know if you want to see them all).




The steps I took to the point to where I could actually try and install KDE were:




  • Install NetBSD 5.0.1

  • Use dhcpcd with one of my network cards

  • Setting the appropriate environment variables and getting pkgsrc via CVS

  • Setting the appropriate environment variable for the location of binary files

  • Executing pkg_add




I'm sorry if this is a trivial error and something that I should be able to figure out on my own, but today was the first day I attempted to install Unix/Linux ever. All the programming assignments I had done up to this point just required me to SSH into a server, use an editor (Emacs) to write my code, and compile it with a Makefile. Any help, tips, pointers would be GREATLY appreciated. :D



Thanks again for your help.



On a side note I didn't know if I ought to post this on ServerFault or SuperUser. If these kinds of questions are more geared towards SuperUser, please let me know and I will post future questions there.

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...