Welcome! Log In Create A New Profile

Advanced

Install from git source as non root user?

Posted by clytle374 
Install from git source as non root user?
June 21, 2016 10:56PM
I am running gentoo and installing slic3r as root has made a mess out of my system. I don't know what happened, if I did I would fix it. I need to know if this is possible or not as I believe as complete reinstall is my only way of fixing this mistake. I need the dev version to fix an infill problem, the good news is 1.3 works great.

Trying to build it as a non root user seems to go okay for a while as it throws warnings or errors and installs things in users directory. Everything goes like the first part quote here. Gentoo has lots of perl already

XML:confused smileyAX::ExpatXS is up to date. (1.33)
!
! Can't write to /usr/local/lib64/perl5/5.24.0 and /usr/local/bin: Installing modules to /home/cory/perl5
! To turn off this warning, you have to do one of the following:
!   - run me as a root or with --sudo option (to install to /usr/local/lib64/perl5/5.24.0 and /usr/local/bin)
!   - Configure local::lib your existing local::lib in this shell to set PERL_MM_OPT etc.
!   - Install local::lib by running the following commands
!
!         cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
!
threads is up to date. (2.09)

Then it gets sketchy, then goes completely wrong.


Cleaning up build files
cannot unlink file for buildtmp/XS.c: Permission denied at /usr/lib64/perl5/vendor_perl/5.24.0/Module/Build/Base.pm line 5262.
cannot restore permissions to 0100644 for buildtmp/XS.c: Permission denied at /usr/lib64/perl5/vendor_perl/5.24.0/Module/Build/Base.pm line 5262.
cannot unlink file for buildtmp/XS.o: Permission denied at /usr/lib64/perl5/vendor_perl/5.24.0/Module/Build/Base.pm line 5262.
cannot restore permissions to 0100644 for buildtmp/XS.o: Permission denied at /usr/lib64/perl5/vendor_perl/5.24.0/Module/Build/Base.pm line 5262.
cannot unlink file for buildtmp/main.xs: Permission denied at /usr/lib64/perl5/vendor_perl/5.24.0/Module/Build/Base.pm line 5262.
cannot restore permissions to 0100644 for buildtmp/main.xs: Permission denied at /usr/lib64/perl5/vendor_perl/5.24.0/Module/Build/Base.pm line 5262.
cannot unlink file for buildtmp/typemap: Permission denied at /usr/lib64/perl5/vendor_perl/5.24.0/Module/Build/Base.pm line 5262.
cannot restore permissions to 0100644 for buildtmp/typemap: Permission denied at /usr/lib64/perl5/vendor_perl/5.24.0/Module/Build/Base.pm line 5262.
cannot remove directory for buildtmp: Directory not empty at /usr/lib64/perl5/vendor_perl/5.24.0/Module/Build/Base.pm line 5262.
Couldn't remove 'buildtmp': Directory not empty
cpanm (App::cpanminus) 1.7039 on perl 5.024000 built for x86_64-linux-thread-multi
Work directory is /home/cory/.cpanm/work/1466563307.30500
You have make /usr/bin/make
You have /usr/bin/wget
You have /bin/tar: tar (GNU tar) 1.28
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later [gnu.org].
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
You have /usr/bin/unzip
!
! Can't write to /usr/local/lib64/perl5/5.24.0 and /usr/local/bin: Installing modules to /home/cory/perl5
! To turn off this warning, you have to do one of the following:
!   - run me as a root or with --sudo option (to install to /usr/local/lib64/perl5/5.24.0 and /usr/local/bin)
!   - Configure local::lib your existing local::lib in this shell to set PERL_MM_OPT etc.
!   - Install local::lib by running the following commands
!
!         cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
!
--> Working on ./xs
Entering /home/cory/Slic3r/xs
Checking if you have Module::Build 0.38 ... Yes (0.4216)
Checking if you have ExtUtils::Install 1.46 ... Yes (2.04)
Running Build.PL
Configuring /home/cory/Slic3r/xs ... Can't create '_build/runtime_params': Permission denied at /usr/lib64/perl5/vendor_perl/5.24.0/Module/Build/Notes.pm line 110.
N/A
Checking dependencies from MYMETA.json ...
Checking if you have ExtUtils::Typemaps::Basic 1.05 ... Yes (1.05)
Checking if you have ExtUtils:tongue sticking out smileyarseXS 3.18 ... Yes (3.30)
Checking if you have Test::More 0 ... Yes (1.302031)
Checking if you have ExtUtils::Typemaps:grinning smileyefault 1.05 ... Yes (1.05)
Checking if you have ExtUtils::Typemaps 1.00 ... Yes (3.30)
Checking if you have ExtUtils:angry smileySpp 0.18 ... Yes (0.18)
Checking if you have Module::Build 0.3601 ... Yes (0.4216)
Building and testing Slic3r-XS-0.01 ... Can't create '_build/runtime_params': Permission denied at /usr/lib64/perl5/vendor_perl/5.24.0/Module/Build/Notes.pm line 110.
FAIL
! Installing ./xs failed. See /home/cory/.cpanm/work/1466563307.30500/build.log for details. Retry with --force to force install it.
The XS/C++ code failed to compile, aborting

/usr/lib64/perl5/vendor_perl/5.24.0/Module/Build/Base.pm belongs to my system.

I run quite a bit of dev packages on my system, just would like to know if I can make slic3r-dev play nice with my system.

Thanks
Cory
Re: Install from git source as non root user?
June 21, 2016 11:01PM
Guess I should say hi since I'm new here, and new to 3d printing. And it installs and runs great if I install as root, unfortunately lots of other things are now broken.
Re: Install from git source as non root user?
October 07, 2016 06:50AM
You can use perlbew on Linux or OSX to install a non-system perl. You can build and install slic3r there.
Vojtech
Sorry, only registered users may post in this forum.

Click here to login