Perl 6 - the future is here, just unevenly distributed

IRC log for #perl11, 2017-12-08

| Channels | #perl11 index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
02:58 ilbot2 joined #perl11
02:58 Topic for #perl11 is now Perl5 + Perl6 == Perl11; # http://perl11.org/ && http://irclog.perlgeek.de/perl11/
07:53 xxfelixxx joined #perl11
08:43 xxfelixxx joined #perl11
10:39 xxfelixxx joined #perl11
10:57 willthechill joined #perl11
10:57 willthechill xxfelixxx: howdy!  :-)
10:57 willthechill welcome to Perl 11!  haha
10:58 willthechill sorry I rebooted my computer and forgot to restart IRC :-P
10:58 xxfelixxx hi
10:59 willthechill well I honestly have no idea how you are getting "centos" inside of your Ubuntu machine!?!
10:59 xxfelixxx me either...
10:59 willthechill is there a real folder named "/opt/centos" on your machine?
10:59 xxfelixxx anyway, working on the bootstap script right now
10:59 xxfelixxx there is a /opt but it is empty
10:59 willthechill yeah /opt is normal
10:59 xxfelixxx my 'machine' is an EC2 instance
11:00 xxfelixxx if that matters
11:00 willthechill OH gosh it might
11:00 willthechill there might be something wrong with it
11:00 willthechill because that's definitely not right at all
11:00 xxfelixxx it is the vanilla Ubuntu that they offer
11:00 xxfelixxx that issue only occurred with a local install
11:00 xxfelixxx when I tried via sudo, it installed ok
11:00 willthechill hmm okay well then I think you need to do a system-wide grep to see where that "/opt/centos" config setting is hiding
11:00 xxfelixxx which is weird
11:01 willthechill yeah that's not good
11:01 willthechill you don't want to have to do that
11:01 xxfelixxx yeah, somehow that ./configure pulled it from somewhere
11:01 willthechill exactly we need to find out where that came from
11:01 willthechill please do a grep and then let it search until it finds anything with "centos" in it
11:02 willthechill I bet somebody at Amazon messed up
11:02 xxfelixxx sure
11:03 willthechill also I think I still need to get a final answer from you about why the `apt-get install g++ ...` command failed when you ran the RPerl installer script
11:03 willthechill was that failure due to the fact that we did not first uncomment the apt.sources file and also run `apt-get update` ?
11:06 xxfelixxx I think so..I would need to try from scratch to make sure...I can do that later.
11:06 xxfelixxx i.e. start with a new instance
11:06 xxfelixxx grepping / for centos....nothing yet
11:07 willthechill hmm I am looking at the LAMP installer, of which the RPerl installer is a strict subset
11:08 willthechill https://github.com/wbraswell/lampuniversity.org/blob/master/bin/LAMP_installer.sh
11:08 willthechill there are plenty of places where we call `apt-get update` and also several places where we edit the "/etc/apt/sources.list" file, but nowhere we edit the file in order to uncomment anything
11:08 xxfelixxx sorry..I need to relocate to another coffee shop..I will be back online in 15-20 min
11:09 willthechill which makes me think the need to uncomment stuff in that sources.list file is an Amazon-specific item
11:09 willthechill okay
11:36 xxfelixxx` joined #perl11
11:36 xxfelixxx` hi
11:38 willthechill yes I'm here
11:38 willthechill still grepping?
11:39 xxfelixxx` starting it again...
11:41 willthechill okay sounds good
11:42 willthechill in case you didn't see my last message before you left...  "which makes me think the need to uncomment stuff in that sources.list file is an Amazon-specific item"
11:44 xxfelixxx` what is the preferred way of pasting you a log?
11:44 willthechill pastebin is fine
11:45 xxfelixxx` https://pastebin.com/L0HSAAiB
11:45 willthechill I usually give my pastebins an expiration date of about 3 to 6 months, unless it contains something which may be useful to future generations
11:46 willthechill checking
11:46 xxfelixxx` good idea
11:46 willthechill hmm okay what do we see if you look at /usr/share/perl5/Dpkg/Arch.pm line 126
11:47 xxfelixxx` $cc_host_gnu_type{$CC} = qx($CC -dumpmachine);
11:47 willthechill I mean, at this point it is a process of debugging where did that wacky "centos" stuff come from
11:48 willthechill okay and what is $CC?
11:48 xxfelixxx` yeah...let me dig a bit
11:48 willthechill is it "gcc"?
11:48 willthechill what do you get if you run `gcc -dumpmachine`?
11:48 xxfelixxx` yes
11:48 xxfelixxx` x86_64-linux-gnu
11:48 willthechill hmm no that's not it
11:49 xxfelixxx` it may be something else if $ENV{CC} is set, since gcc is the default if not defined.
11:49 willthechill OH WAIT this is a different but related error
11:49 willthechill "/opt/centos/devtoolset-1.1/root/usr/bin/gcc" is failure to find the compiler
11:49 willthechill the previous error you sent me was failure to find `cpp` the C preprocessor
11:49 willthechill both are referencing the erroneous "/opt/centos/devtoolset..." directory
11:50 xxfelixxx` yes, here I tried running the Makefile.pl in the Alien::PCRE2 work directory inside cpanm again
11:50 willthechill my current guess: some lazy Amazon technician used CentOS to build the Ubuntu VM image and forgot to clean up after themselves when the VM build process was done
11:50 xxfelixxx` still nothing from he grep
11:50 xxfelixxx` the grep
11:51 willthechill you should definitely NOT be forced to install any CPAN dists as system-wide using sudo
11:51 willthechill except for ExtUtils::MakeMaker
11:51 willthechill that's the only one, it is required as part of the basic Perl build process upon which everything else is built
11:52 xxfelixxx` there is some unrelated centos cruft in /etc/yum.repos.d/
11:52 willthechill this is the line which does that:    https://github.com/wbraswell/rperl/blob/master/script/rperl_installer.sh#L268
11:52 willthechill ugh yeah we should not be seeing that yum stuff
11:52 willthechill bad Amazon!
11:53 willthechill I'm basically blaming Amazon at this point because I can't believe this is the fault of any CPAN author
11:53 willthechill *I don't want to believe
11:53 willthechill ;-)
11:54 willthechill we definitely don't want to go any further until this silly centos stuff is fixed because who KNOWS what kinds of headaches this will cause once we get into the real RPerl compiling and other super-complex source code issues
11:54 willthechill failure to properly run ./configure or set up cpp or gcc is like a fatal error in the OS itself
11:55 willthechill I would consider that VM image to be "broken" at this point :-P
11:55 xxfelixxx` gcc and cpp are installed...
11:55 willthechill oh I don't doubt they are installed, they are just not being properly found by ./configure and/or other components
11:55 xxfelixxx` alright...I will blow away this instance and start from scratch
11:56 xxfelixxx` and see if that helps
11:56 willthechill I don't think that will help
11:56 willthechill I mean it's going to be the same VM image
11:56 willthechill I _assume_ it's going to be the same VM image, with the same embedded centos issues
11:57 willthechill but hey it won't hurt to try I guess!
11:59 xxfelixxx` does it matter if it is an Ubuntu Server version?
11:59 xxfelixxx` vs desktop?
11:59 willthechill hmm I don't know, good question
11:59 willthechill I use both
11:59 willthechill I use server version on all my remote cloud servers
11:59 willthechill and I use desktop version on my laptop
12:00 willthechill they both work
12:00 xxfelixxx` I have an older desktop version on my ancient laptop
12:00 willthechill hmm it probably needs to be v16.04 at least
12:00 xxfelixxx` yeah, hence the EC2 version
12:00 willthechill I mean we can probably make it work with v12.04 but that's not an exercise for today
12:01 willthechill oh you're correct to use the EC2 instance
12:01 willthechill it's just that we have to FIX the EC2 instance, apparently :-P
12:02 xxfelixxx` launching new instance now
12:02 willthechill good deal
12:03 willthechill it is 6am here, which means it is time to eat!  :-D
12:03 willthechill I'll check back after food time
12:11 xxfelixxx joined #perl11
12:11 xxfelixxx its 7pm here
12:21 xxfelixxx ok, so from a clean install, running step 20 breaks here:
12:23 xxfelixxx http://termbin.com/xthl
12:24 xxfelixxx I think because make is missing...
12:24 xxfelixxx ...and gcc
12:28 xxfelixxx after installing make, ExtUtils::MakeMaker builds
12:28 xxfelixxx but it still complains about:
12:29 xxfelixxx perl -MExtUtils::MakeMaker\ 999
12:29 xxfelixxx y
12:29 xxfelixxx ExtUtils::MakeMaker version 999 required--this is only version 7.3.
12:29 xxfelixxx BEGIN failed--compilation aborted.
12:29 xxfelixxx http://termbin.com/lp0x
12:29 xxfelixxx this is running step 20, after running 'sudo apt-get install make'
12:30 xxfelixxx btw, termbin.com is handy:
12:30 xxfelixxx cat some_file | nc termbin.com 9999
12:30 xxfelixxx and it prints out the url
12:44 xxfelixxx step 25 breaks because gcc missing, and we need to add repos to apt
12:44 xxfelixxx for astyle etc.
12:45 xxfelixxx output 25: http://termbin.com/k360
12:50 xxfelixxx I think that although we are trying to install g++ and other packages in step 25, because it can't find some packages, like astyle, it just aborts and nothing gets installed.
13:00 xxfelixxx I'm an idiot...I found where the centos string came from
13:00 xxfelixxx [ REDHAT OR CENTOS OPTION ONLY: Install RPerl Dependency GCC, Enable Via .bashrc ]
13:00 xxfelixxx $ echo -e "\n# utilize upgraded GCC\nexport CC=/opt/centos/devtoolset-1.1/root/usr/bin/gcc\nexport CPP=/opt/centos/devtoolset-1.1/root/usr/bin/cpp\nexport CXX=/opt/centos/devtoolset-1.1/root/usr/bin/c++" >> ~/.bashrc
13:01 xxfelixxx from the rperl_installer.sh script which I should not have run....
13:01 xxfelixxx so...not Amazon's fault
13:03 setancredit joined #perl11
13:09 willthechill AH okay haha
13:09 willthechill "operator error"
13:10 willthechill alright I'm going to sleep for a while, then I will pick up again with you to make any changes we need to the RPerl installer
13:10 willthechill good job so far!  :-D
13:10 xxfelixxx compiling from CPAN now...
13:10 willthechill excellent
13:11 willthechill I'll stay logged in, going to sleep now, thank you sir!
13:11 xxfelixxx good night
13:11 setancredit hohohoh
13:21 xxfelixxx step 26 - cpan install has a few issues:
13:21 xxfelixxx Test::Taint fails
13:23 xxfelixxx which is a dependency of Math::GSL
13:25 setancredit boot scan
13:25 setancredit please
13:27 xxfelixxx Test::Taint failure is known for perl 5.22.1 which comes with Ubuntu 16.04.3 LTS
13:30 xxfelixxx however, if I just run the tests, they pass
13:30 xxfelixxx so, trying again
13:31 xxfelixxx output 26: http://termbin.com/wt4q
14:26 xxfelixxx tests still running....t/12 and t/13 are taking a really long time...
14:27 xxfelixxx I saw on your cpan testers report that they took ~25 minutes...would be nice to make them faster...
14:27 xxfelixxx I guess my micro instance is rather underpowered...
14:28 xxfelixxx EC2 t2.micro ....guess I shouldn't complain for free
14:40 xxfelixxx tests PASS for RPerl
14:41 xxfelixxx output 26, second try: http://termbin.com/d6nw
14:42 xxfelixxx I will add the notes to the installation script and work on them tomorrow.
14:42 xxfelixxx Going to sleep.

| Channels | #perl11 index | Today | | Search | Google Search | Plain-Text | summary