You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@trafficcontrol.apache.org by Amir Yeshurun <am...@qwilt.com> on 2017/05/29 14:31:25 UTC

TC 2.1 postinstall errors

Hi,

I am trying to install TC 2.1 on Centos 6.7.
The RPM was built from master using the Vagrant build framework.
I had some dependency issues around cpanm and carton and I had to manually
install cpanm and upgrade Parse::CPAN::Meta before I managed to
successfully run Carton and install Perl dependencies.

Eventually, I get these errors from _posinstall (see below)
Is there something that I am missing?
Thanks
/amiry

[root@ops-int app]# /opt/traffic_ops/install/bin/postinstall
Carton is up to date. (v1.0.28)
Installing modules using /opt/traffic_ops/app/cpanfile
Complete! Modules were installed into /opt/traffic_ops/app/local
  % Total    % Received % Xferd  Average Speed   Time    Time     Time
 Current
                                 Dload  Upload   Total   Spent    Left
 Speed
100 87.0M  100 87.0M    0     0  48.5M      0  0:00:01  0:00:01 --:--:--
53.1M
  % Total    % Received % Xferd  Average Speed   Time    Time     Time
 Current
                                 Dload  Upload   Total   Spent    Left
 Speed
  0    64    0    64    0     0    368      0 --:--:-- --:--:-- --:--:--
688
go1.8.1.linux-amd64.tar.gz.sha256
sha256sum: /dev/fd/63: no properly formatted SHA256 checksum lines found
Extracting go tarball to /usr/local/go
Now installing goose
GO_BINARY: /usr/local/go/bin/go
Successfully installed goose to /opt/traffic_ops/go/bin/goose
Warning: Use of "localtime" without parentheses is ambiguous at
/opt/traffic_ops/install/lib/InstallUtils.pm line 113.
*Type of arg 1 to keys must be hash (not private variable) at
/opt/traffic_ops/install/bin/_postinstall line 85, near "$var ) "*
*Type of arg 1 to keys must be hash (not private variable) at
/opt/traffic_ops/install/bin/_postinstall line 278, near "$defaultInputs )
"*
*Type of arg 1 to keys must be hash (not private variable) at
/opt/traffic_ops/install/bin/_postinstall line 300, near "$defaultInputs )
"*
*Type of arg 1 to push must be array (not hash element) at
/opt/traffic_ops/install/bin/_postinstall line 350, near "%temp;"*
Execution of /opt/traffic_ops/install/bin/_postinstall aborted due to
compilation errors.

Re: TC 2.1 postinstall errors

Posted by Dan Kirkwood <da...@gmail.com>.
Hi,  Amir..

We are using Centos 7.2 for traffic ops installation,  and using
docker-compose to build.  Follow the instructions in `BUILD.md` (at
the top level of trafficcontrol) and then installation instructions in
`traffic_ops/INSTALL.md`.

Today is a holiday in the U.S.,  but I'll check email later today if
you have more questions.

-dan

On Mon, May 29, 2017 at 8:31 AM, Amir Yeshurun <am...@qwilt.com> wrote:
> Hi,
>
> I am trying to install TC 2.1 on Centos 6.7.
> The RPM was built from master using the Vagrant build framework.
> I had some dependency issues around cpanm and carton and I had to manually
> install cpanm and upgrade Parse::CPAN::Meta before I managed to
> successfully run Carton and install Perl dependencies.
>
> Eventually, I get these errors from _posinstall (see below)
> Is there something that I am missing?
> Thanks
> /amiry
>
> [root@ops-int app]# /opt/traffic_ops/install/bin/postinstall
> Carton is up to date. (v1.0.28)
> Installing modules using /opt/traffic_ops/app/cpanfile
> Complete! Modules were installed into /opt/traffic_ops/app/local
>   % Total    % Received % Xferd  Average Speed   Time    Time     Time
>  Current
>                                  Dload  Upload   Total   Spent    Left
>  Speed
> 100 87.0M  100 87.0M    0     0  48.5M      0  0:00:01  0:00:01 --:--:--
> 53.1M
>   % Total    % Received % Xferd  Average Speed   Time    Time     Time
>  Current
>                                  Dload  Upload   Total   Spent    Left
>  Speed
>   0    64    0    64    0     0    368      0 --:--:-- --:--:-- --:--:--
> 688
> go1.8.1.linux-amd64.tar.gz.sha256
> sha256sum: /dev/fd/63: no properly formatted SHA256 checksum lines found
> Extracting go tarball to /usr/local/go
> Now installing goose
> GO_BINARY: /usr/local/go/bin/go
> Successfully installed goose to /opt/traffic_ops/go/bin/goose
> Warning: Use of "localtime" without parentheses is ambiguous at
> /opt/traffic_ops/install/lib/InstallUtils.pm line 113.
> *Type of arg 1 to keys must be hash (not private variable) at
> /opt/traffic_ops/install/bin/_postinstall line 85, near "$var ) "*
> *Type of arg 1 to keys must be hash (not private variable) at
> /opt/traffic_ops/install/bin/_postinstall line 278, near "$defaultInputs )
> "*
> *Type of arg 1 to keys must be hash (not private variable) at
> /opt/traffic_ops/install/bin/_postinstall line 300, near "$defaultInputs )
> "*
> *Type of arg 1 to push must be array (not hash element) at
> /opt/traffic_ops/install/bin/_postinstall line 350, near "%temp;"*
> Execution of /opt/traffic_ops/install/bin/_postinstall aborted due to
> compilation errors.