You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficserver.apache.org by Muhammad Faisal <fa...@yahoo.com> on 2016/01/27 13:16:36 UTC

Traffic_top command not found

Hi,
We have recently deployed ATS 5.3.x when running traffic_top command we 
get error "-bash: traffic_top: command not found"

Please help.


Re: Traffic_top command not found

Posted by Masaori Koshiba <ma...@apache.org>.
Hi Muhammad,

traffic_top needs 'curses'. AFAIK, if it is not installed, traffic_top is
not built. I recomend you check your configure log.

Thanks,
Masaori

On Wednesday, 27 January 2016, Reindl Harald <h....@thelounge.net> wrote:

> no idea, i don't package to /usr/local
> with "--enable-layout=Gentoo" it ends in %{_bindir}/traffic*
>
> [builduser@buildserver:~]$ cat /rpmbuild/SPECS/trafficserver.spec
> %global            debug_package    %{nil}
>
> Summary:           Apache Trafficserver
> Name:              trafficserver
> Version:           5.3.2
> Release:           2%{?dist}
> Epoch:             2
> License:           ASL 2.0
> Group:             System Environment/Daemons
> Source0: http://www.apache.org/dist/%{name}/%{name}-%{version}.tar.bz2
> Source1:           %{name}.service
> Source2:           %{name}.tmpfilesd
> URL:               http://trafficserver.apache.org/index.html
> BuildRequires:     autoconf
> BuildRequires:     automake
> BuildRequires:     expat-devel
> BuildRequires:     gcc-c++
> BuildRequires:     hwloc-devel
> BuildRequires:     libtool
> BuildRequires:     openssl-devel
> BuildRequires:     pcre-devel
> BuildRequires:     tcl-devel
> BuildRequires:     xz-devel
> BuildRequires:     zlib-devel
> Requires:          systemd
>
> %description
> Apache Traffic Server is a fast, scalable and extensible HTTP/1.1
> compliant caching proxy server
>
> %package           devel
> Summary:           Apache Traffic Server development libraries and header
> files
> Group:             Development/Libraries
> Requires:          %{name} = %{version}-%{release}
> %description       devel
>
> %package           manpages
> Summary:           Trafficserver manuals
> Group:             Applications/System
> %description       manpages
>
> %package           plugins
> Summary:           Trafficserver plugins
> Group:             Applications/System
> %description       plugins
>
> %prep
> %setup -q
>
> %build
> export CFLAGS="%{optflags} -O3 -fPIC -fPIE -Wno-deprecated-declarations
> -Wno-error=unused-result -funroll-loops -funswitch-loops
> -minline-all-stringops -flto -ffat-lto-objects -fuse-ld=gold
> -fuse-linker-plugin"
> export CXXFLAGS="$CFLAGS"
> export LDFLAGS="-Wl,-z,now -Wl,-z,relro,-z,noexecstack,-fuse-ld=gold -pie
> %{optflags} -O3 -funroll-loops -funswitch-loops -minline-all-stringops
> -flto -ffat-lto-objects -fuse-ld=gold -fuse-linker-plugin"
> export SH_LDFLAGS="-Wl,-z,now -Wl,-z,relro,-z,noexecstack,-fuse-ld=gold
> %{optflags} -O3 -funroll-loops -funswitch-loops -minline-all-stringops
> -flto -ffat-lto-objects -fuse-ld=gold -fuse-linker-plugin"
> ./configure --enable-layout=Gentoo \
>  --libdir=%{_libdir}/%{name} \
>  --with-tcl=%{_libdir} \
>  --with-jemalloc \
>  --with-user=ats \
>  --with-group=ats \
>  --with-pic \
>  --with-xml=expat \
>  --enable-shared  \
>  --enable-hwloc \
>  --disable-debug \
>  --disable-diags \
>  --disable-linux-native-aio \
>  --disable-reclaimable-freelist \
>  --disable-spdy \
>  --disable-static
> %{__make} %{?_smp_mflags}
>
> %install
> make install-strip DESTDIR=%{buildroot}
> mkdir -p %{buildroot}/run/%{name}
> install -D -m 0644 -p %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
> install -D -m 0644 -p %{SOURCE2}
> %{buildroot}%{_prefix}/lib/tmpfiles.d/%{name}.conf
> rm -rf %{buildroot}%{_docdir}/%{name} \
>  %{buildroot}%{_libdir}/perl5/ \
>  %{buildroot}%{_libdir}/%{name}/*.a \
>  %{buildroot}%{_libdir}/%{name}/*.la \
>  %{buildroot}%{_libdir}/%{name}/plugins/*.la \
>  %{buildroot}%{_datarootdir}/perl5/Apache/TS.pm \
>  %{buildroot}%{_datarootdir}/perl5/Apache/TS.pm.in \
>  %{buildroot}%{_datarootdir}/perl5/Apache/TS/AdminClient.pm \
>  %{buildroot}%{_datarootdir}/perl5/Apache/TS/Config.pm \
>  %{buildroot}%{_datarootdir}/perl5/Apache/TS/Config/Records.pm \
>  %{buildroot}%{_bindir}/tspush \
>  %{buildroot}%{_bindir}/traffic_shell \
>  %{buildroot}%{_bindir}/traffic_sac \
>  %{buildroot}%{_bindir}/trafficserver \
>  %{buildroot}%{_bindir}/tstop
> strip -s %{buildroot}%{_bindir}/traffic_cop \
>  %{buildroot}%{_bindir}/traffic_line \
>  %{buildroot}%{_bindir}/traffic_logcat \
>  %{buildroot}%{_bindir}/traffic_logstats \
>  %{buildroot}%{_bindir}/traffic_server \
>  %{buildroot}%{_libdir}/%{name}/*.so* \
>  %{buildroot}%{_libdir}/%{name}/plugins/*.so
> mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d \
>  %{buildroot}%{_sysconfdir}/%{name}/internal \
>  %{buildroot}%{_sysconfdir}/%{name}/snapshots \
>  %{buildroot}%{_sysconfdir}/%{name}/ssl \
>  %{buildroot}%{_docdir}/%{name}/etc/body_factory/default
> chmod 0770 %{buildroot}%{_sysconfdir}/%{name}/internal
> chmod 0770 %{buildroot}%{_sysconfdir}/%{name}/snapshots
> chmod 0750 %{buildroot}%{_sysconfdir}/%{name}/ssl
> chmod 0750 %{buildroot}%{_sysconfdir}/%{name}/body_factory
> echo "%{_libdir}/%{name}" >
> %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
> mv %{buildroot}%{_sysconfdir}/%{name}/body_factory/default/*
> %{buildroot}%{_docdir}/%{name}/etc/body_factory/default/
> mv %{buildroot}%{_sysconfdir}/%{name}/*.config
> %{buildroot}%{_docdir}/%{name}/etc/
>
> %post
> %{_sbindir}/ldconfig
> %{_bindir}/systemctl --system daemon-reload &> /dev/null
> chown root:ats %{_sysconfdir}/%{name}/body_factory &> /dev/null
> chown root:ats %{_sysconfdir}/%{name}/ssl &> /dev/null
> chown ats:ats %{_sysconfdir}/%{name}/internal &> /dev/null
> chown ats:ats %{_sysconfdir}/%{name}/snapshots &> /dev/null
> exit 0
>
> %pre
> getent group ats &> /dev/null || groupadd -r ats -g 176 &> /dev/null
> getent passwd ats &> /dev/null || useradd -r -u 176 -g ats -d / -s
> %{_sbindir}/nologin -c "Apache Traffic Server" ats &> /dev/null
> exit 0
>
> %files
> %dir %{_libdir}/%{name}
> %dir %{_sysconfdir}/%{name}
> %config(noreplace) %{_sysconfdir}/%{name}/*
> %{_bindir}/traffic*
> %{_libdir}/%{name}/*.so.*
> %{_unitdir}/%{name}.service
> %{_prefix}/lib/tmpfiles.d/%{name}.conf
> %attr(0770, ats, ats) %dir %{_var}/log/%{name}
> %attr(0770, ats, ats) %dir /run/%{name}
> %attr(0770, ats, ats) %dir %{_var}/cache/%{name}
> %attr(0644, root, root) %{_sysconfdir}/ld.so.conf.d/*
>
> %files devel
> %{_bindir}/tsxs
> %dir %{_includedir}/trafficserver
> %{_includedir}/trafficserver/*
> %{_libdir}/%{name}/*.so
> %{_libdir}/%{name}/pkgconfig/*.pc
>
> %files manpages
> %{_mandir}/man3/*
> %{_docdir}/%{name}/*
>
> %files plugins
> %dir %{_libdir}/%{name}/plugins
> %{_libdir}/%{name}/plugins/*.so
>
> %changelog
> * Tue Sep 15 2015 Reindl Harald <h....@thelounge.net>
> - update to 5.3.2
> - enable link-time-optimization
>
> * Mon Jul 6 2015 Reindl Harald <h....@thelounge.net>
> - update to 5.3.1
>
>
> Am 27.01.2016 um 14:46 schrieb Muhammad Faisal:
>
>> *Hello Reindl,*
>> The ATS is installed using default directory structure we did not change
>> anything. The other command traffic_ctl, traffic_logstats are working
>> fine. Kindly see below and guide how to resolve this
>>
>> /usr/local/bin
>> [root@wc01 bin]# ls
>> traffic_cop       traffic_ctl     traffic_line    traffic_logstats
>> traffic_sac    traffic_server  tspush
>> traffic_crashlog  traffic_layout  traffic_logcat  traffic_manager
>> trafficserver  traffic_via     tsxs
>>
>> On 1/27/2016 5:59 PM, Reindl Harald wrote:
>>
>>>
>>> Am 27.01.2016 um 13:34 schrieb Muhammad Faisal:
>>>
>>>> Thanks. Deployed mean installed in our lab with transparent bridging.
>>>> the traffic_top giving the below error:
>>>>
>>>> Installation is done by compiling from sources so the install director
>>>> is /usr/local/etc/trafficserver
>>>>
>>>
>>> nonsense, the binaries don't belong to /usr/local/etc/
>>> /usr/local has exactly the same hirachy as /usr
>>> hence /usr/local/sbin:/usr/local/bin is normally in the PATH
>>>
>>> fix your installation or your PATH setting
>>>
>>> /usr/bin/which: no traffic_top in
>>>>
>>>> (/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
>>>>
>>>> On 1/27/2016 5:28 PM, Reindl Harald wrote:
>>>>
>>>>>
>>>>>
>>>>> Am 27.01.2016 um 13:16 schrieb Muhammad Faisal:
>>>>>
>>>>>> We have recently deployed ATS 5.3.x when running traffic_top
>>>>>> command we
>>>>>> get error "-bash: traffic_top: command not found"
>>>>>>
>>>>>
>>>>> deployed how?
>>>>>
>>>>> [root@proxy:~]$ which traffic_top
>>>>> /usr/bin/traffic_top
>>>>> [root@proxy:~]$
>>>>>
>>>>> [root@proxy:~]$ rpm -q --file /usr/bin/traffic_top
>>>>> trafficserver-5.3.2-2.fc22.20151012.rh.x86_64
>>>>>
>>>>
>

Re: Traffic_top command not found

Posted by CJ Ess <zx...@gmail.com>.
Maybe it is a problem with the RPM spec, try adding these two lines by the
other BuildRequires statements:

BuildRequires: ncurses-devel
BuildRequires: libcurl-devel

On Thu, Jan 28, 2016 at 1:51 PM, Muhammad Faisal <fa...@yahoo.com>
wrote:

> I have rebuild and upgraded to version 6.0.0 but still traffic_top command
> is missing. Contents of bin dir is as follows:
>
> [root@ats bin]# ls
> traffic_cop       traffic_layout  traffic_logstats  trafficserver tspush
> traffic_crashlog  traffic_line    traffic_manager   traffic_server tsxs
> traffic_ctl       traffic_logcat  traffic_sac       traffic_via
>
> Please help
>
>
> On 1/27/2016 7:47 PM, Reindl Harald wrote:
>
>> no idea, i don't package to /usr/local
>> with "--enable-layout=Gentoo" it ends in %{_bindir}/traffic*
>>
>> [builduser@buildserver:~]$ cat /rpmbuild/SPECS/trafficserver.spec
>> %global            debug_package    %{nil}
>>
>> Summary:           Apache Trafficserver
>> Name:              trafficserver
>> Version:           5.3.2
>> Release:           2%{?dist}
>> Epoch:             2
>> License:           ASL 2.0
>> Group:             System Environment/Daemons
>> Source0: http://www.apache.org/dist/%{name}/%{name}-%{version}.tar.bz2
>> Source1:           %{name}.service
>> Source2:           %{name}.tmpfilesd
>> URL:               http://trafficserver.apache.org/index.html
>> BuildRequires:     autoconf
>> BuildRequires:     automake
>> BuildRequires:     expat-devel
>> BuildRequires:     gcc-c++
>> BuildRequires:     hwloc-devel
>> BuildRequires:     libtool
>> BuildRequires:     openssl-devel
>> BuildRequires:     pcre-devel
>> BuildRequires:     tcl-devel
>> BuildRequires:     xz-devel
>> BuildRequires:     zlib-devel
>> Requires:          systemd
>>
>> %description
>> Apache Traffic Server is a fast, scalable and extensible HTTP/1.1
>> compliant caching proxy server
>>
>> %package           devel
>> Summary:           Apache Traffic Server development libraries and header
>> files
>> Group:             Development/Libraries
>> Requires:          %{name} = %{version}-%{release}
>> %description       devel
>>
>> %package           manpages
>> Summary:           Trafficserver manuals
>> Group:             Applications/System
>> %description       manpages
>>
>> %package           plugins
>> Summary:           Trafficserver plugins
>> Group:             Applications/System
>> %description       plugins
>>
>> %prep
>> %setup -q
>>
>> %build
>> export CFLAGS="%{optflags} -O3 -fPIC -fPIE -Wno-deprecated-declarations
>> -Wno-error=unused-result -funroll-loops -funswitch-loops
>> -minline-all-stringops -flto -ffat-lto-objects -fuse-ld=gold
>> -fuse-linker-plugin"
>> export CXXFLAGS="$CFLAGS"
>> export LDFLAGS="-Wl,-z,now -Wl,-z,relro,-z,noexecstack,-fuse-ld=gold -pie
>> %{optflags} -O3 -funroll-loops -funswitch-loops -minline-all-stringops
>> -flto -ffat-lto-objects -fuse-ld=gold -fuse-linker-plugin"
>> export SH_LDFLAGS="-Wl,-z,now -Wl,-z,relro,-z,noexecstack,-fuse-ld=gold
>> %{optflags} -O3 -funroll-loops -funswitch-loops -minline-all-stringops
>> -flto -ffat-lto-objects -fuse-ld=gold -fuse-linker-plugin"
>> ./configure --enable-layout=Gentoo \
>>  --libdir=%{_libdir}/%{name} \
>>  --with-tcl=%{_libdir} \
>>  --with-jemalloc \
>>  --with-user=ats \
>>  --with-group=ats \
>>  --with-pic \
>>  --with-xml=expat \
>>  --enable-shared  \
>>  --enable-hwloc \
>>  --disable-debug \
>>  --disable-diags \
>>  --disable-linux-native-aio \
>>  --disable-reclaimable-freelist \
>>  --disable-spdy \
>>  --disable-static
>> %{__make} %{?_smp_mflags}
>>
>> %install
>> make install-strip DESTDIR=%{buildroot}
>> mkdir -p %{buildroot}/run/%{name}
>> install -D -m 0644 -p %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
>> install -D -m 0644 -p %{SOURCE2}
>> %{buildroot}%{_prefix}/lib/tmpfiles.d/%{name}.conf
>> rm -rf %{buildroot}%{_docdir}/%{name} \
>>  %{buildroot}%{_libdir}/perl5/ \
>>  %{buildroot}%{_libdir}/%{name}/*.a \
>>  %{buildroot}%{_libdir}/%{name}/*.la \
>>  %{buildroot}%{_libdir}/%{name}/plugins/*.la \
>>  %{buildroot}%{_datarootdir}/perl5/Apache/TS.pm \
>>  %{buildroot}%{_datarootdir}/perl5/Apache/TS.pm.in \
>>  %{buildroot}%{_datarootdir}/perl5/Apache/TS/AdminClient.pm \
>>  %{buildroot}%{_datarootdir}/perl5/Apache/TS/Config.pm \
>>  %{buildroot}%{_datarootdir}/perl5/Apache/TS/Config/Records.pm \
>>  %{buildroot}%{_bindir}/tspush \
>>  %{buildroot}%{_bindir}/traffic_shell \
>>  %{buildroot}%{_bindir}/traffic_sac \
>>  %{buildroot}%{_bindir}/trafficserver \
>>  %{buildroot}%{_bindir}/tstop
>> strip -s %{buildroot}%{_bindir}/traffic_cop \
>>  %{buildroot}%{_bindir}/traffic_line \
>>  %{buildroot}%{_bindir}/traffic_logcat \
>>  %{buildroot}%{_bindir}/traffic_logstats \
>>  %{buildroot}%{_bindir}/traffic_server \
>>  %{buildroot}%{_libdir}/%{name}/*.so* \
>>  %{buildroot}%{_libdir}/%{name}/plugins/*.so
>> mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d \
>>  %{buildroot}%{_sysconfdir}/%{name}/internal \
>>  %{buildroot}%{_sysconfdir}/%{name}/snapshots \
>>  %{buildroot}%{_sysconfdir}/%{name}/ssl \
>>  %{buildroot}%{_docdir}/%{name}/etc/body_factory/default
>> chmod 0770 %{buildroot}%{_sysconfdir}/%{name}/internal
>> chmod 0770 %{buildroot}%{_sysconfdir}/%{name}/snapshots
>> chmod 0750 %{buildroot}%{_sysconfdir}/%{name}/ssl
>> chmod 0750 %{buildroot}%{_sysconfdir}/%{name}/body_factory
>> echo "%{_libdir}/%{name}" >
>> %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
>> mv %{buildroot}%{_sysconfdir}/%{name}/body_factory/default/*
>> %{buildroot}%{_docdir}/%{name}/etc/body_factory/default/
>> mv %{buildroot}%{_sysconfdir}/%{name}/*.config
>> %{buildroot}%{_docdir}/%{name}/etc/
>>
>> %post
>> %{_sbindir}/ldconfig
>> %{_bindir}/systemctl --system daemon-reload &> /dev/null
>> chown root:ats %{_sysconfdir}/%{name}/body_factory &> /dev/null
>> chown root:ats %{_sysconfdir}/%{name}/ssl &> /dev/null
>> chown ats:ats %{_sysconfdir}/%{name}/internal &> /dev/null
>> chown ats:ats %{_sysconfdir}/%{name}/snapshots &> /dev/null
>> exit 0
>>
>> %pre
>> getent group ats &> /dev/null || groupadd -r ats -g 176 &> /dev/null
>> getent passwd ats &> /dev/null || useradd -r -u 176 -g ats -d / -s
>> %{_sbindir}/nologin -c "Apache Traffic Server" ats &> /dev/null
>> exit 0
>>
>> %files
>> %dir %{_libdir}/%{name}
>> %dir %{_sysconfdir}/%{name}
>> %config(noreplace) %{_sysconfdir}/%{name}/*
>> %{_bindir}/traffic*
>> %{_libdir}/%{name}/*.so.*
>> %{_unitdir}/%{name}.service
>> %{_prefix}/lib/tmpfiles.d/%{name}.conf
>> %attr(0770, ats, ats) %dir %{_var}/log/%{name}
>> %attr(0770, ats, ats) %dir /run/%{name}
>> %attr(0770, ats, ats) %dir %{_var}/cache/%{name}
>> %attr(0644, root, root) %{_sysconfdir}/ld.so.conf.d/*
>>
>> %files devel
>> %{_bindir}/tsxs
>> %dir %{_includedir}/trafficserver
>> %{_includedir}/trafficserver/*
>> %{_libdir}/%{name}/*.so
>> %{_libdir}/%{name}/pkgconfig/*.pc
>>
>> %files manpages
>> %{_mandir}/man3/*
>> %{_docdir}/%{name}/*
>>
>> %files plugins
>> %dir %{_libdir}/%{name}/plugins
>> %{_libdir}/%{name}/plugins/*.so
>>
>> %changelog
>> * Tue Sep 15 2015 Reindl Harald <h....@thelounge.net>
>> - update to 5.3.2
>> - enable link-time-optimization
>>
>> * Mon Jul 6 2015 Reindl Harald <h....@thelounge.net>
>> - update to 5.3.1
>>
>>
>> Am 27.01.2016 um 14:46 schrieb Muhammad Faisal:
>>
>>> *Hello Reindl,*
>>> The ATS is installed using default directory structure we did not change
>>> anything. The other command traffic_ctl, traffic_logstats are working
>>> fine. Kindly see below and guide how to resolve this
>>>
>>> /usr/local/bin
>>> [root@wc01 bin]# ls
>>> traffic_cop       traffic_ctl     traffic_line traffic_logstats
>>> traffic_sac    traffic_server  tspush
>>> traffic_crashlog  traffic_layout  traffic_logcat traffic_manager
>>> trafficserver  traffic_via     tsxs
>>>
>>> On 1/27/2016 5:59 PM, Reindl Harald wrote:
>>>
>>>>
>>>> Am 27.01.2016 um 13:34 schrieb Muhammad Faisal:
>>>>
>>>>> Thanks. Deployed mean installed in our lab with transparent bridging.
>>>>> the traffic_top giving the below error:
>>>>>
>>>>> Installation is done by compiling from sources so the install director
>>>>> is /usr/local/etc/trafficserver
>>>>>
>>>>
>>>> nonsense, the binaries don't belong to /usr/local/etc/
>>>> /usr/local has exactly the same hirachy as /usr
>>>> hence /usr/local/sbin:/usr/local/bin is normally in the PATH
>>>>
>>>> fix your installation or your PATH setting
>>>>
>>>> /usr/bin/which: no traffic_top in
>>>>> (/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
>>>>>
>>>>>
>>>>> On 1/27/2016 5:28 PM, Reindl Harald wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>> Am 27.01.2016 um 13:16 schrieb Muhammad Faisal:
>>>>>>
>>>>>>> We have recently deployed ATS 5.3.x when running traffic_top
>>>>>>> command we
>>>>>>> get error "-bash: traffic_top: command not found"
>>>>>>>
>>>>>>
>>>>>> deployed how?
>>>>>>
>>>>>> [root@proxy:~]$ which traffic_top
>>>>>> /usr/bin/traffic_top
>>>>>> [root@proxy:~]$
>>>>>>
>>>>>> [root@proxy:~]$ rpm -q --file /usr/bin/traffic_top
>>>>>> trafficserver-5.3.2-2.fc22.20151012.rh.x86_64
>>>>>>
>>>>>
>>
>

Re: Traffic_top command not found

Posted by Muhammad Faisal <fa...@yahoo.com>.
Ah! I just came to know that several emails on this topic are delivered 
in junk mail folder by Thunderbird this is why i missed CJ, Masaori and 
David replies while only Reindl responses were delivered in inbox. I'm 
thankful to all above for their help and valuable time for responses.

Regards,
F.

On 1/30/2016 2:35 PM, Muhammad Faisal wrote:
> It worked.
> Thanks Reindl for guiding me and im sorry for being annoying :(.
>
> Thanks
> F,
>
> On 1/30/2016 6:39 AM, Reindl Harald wrote:
>>
>>
>> Am 29.01.2016 um 18:50 schrieb Muhammad Faisal:
>>> Thanks for your patience Reindl.
>>> Refer to below now i have installed "libcurl-devel". Currently build is
>>> with --enable-posix-cap and --enable-tproxy=force should i recompile?
>>
>> what else?
>>
>> install the build-dependency will not magically build it
>>
>>> [root@ats ~]# traffic_top
>>> -bash: traffic_top: command not found
>>> [root@wc01 ~]# rpm -qa | grep devel
>>> libsepol-devel-2.0.41-4.el6.x86_64
>>> pciutils-devel-3.1.10-4.el6.x86_64
>>> krb5-devel-1.10.3-42.el6.x86_64
>>> libcap-devel-2.16-5.5.el6.x86_64
>>> libidn-devel-1.18-2.el6.x86_64
>>> kernel-devel-2.6.32-573.12.1.el6.x86_64
>>> systemtap-devel-2.7-2.el6.x86_64
>>> keyutils-libs-devel-1.4-5.el6.x86_64
>>> pcre-devel-7.8-7.el6.x86_64
>>> hwloc-devel-1.5-3.el6_5.x86_64
>>> gettext-devel-0.17-18.el6.x86_64
>>> zlib-devel-1.2.3-29.el6.x86_64
>>> libselinux-devel-2.0.94-5.8.el6.x86_64
>>> tcl-devel-8.5.7-6.el6.x86_64
>>> libxml2-devel-2.7.6-20.el6_7.1.x86_64
>>> glibc-devel-2.12-1.166.el6_7.3.x86_64
>>> perl-devel-5.10.1-141.el6_7.1.x86_64
>>> ncurses-devel-5.7-4.20090207.el6.x86_64
>>> openssl-devel-1.0.1e-42.el6_7.2.x86_64
>>> libcurl-devel-7.19.7-46.el6.x86_64
>>> gdbm-devel-1.8.0-38.el6.x86_64
>>> libstdc++-devel-4.4.7-16.el6.x86_64
>>> libcom_err-devel-1.41.12-22.el6.x86_64
>>> expat-devel-2.0.1-11.el6_2.x86_64
>>> db4-devel-4.7.25-20.el6_7.x86_64
>>> [root@ats ~]#
>>>
>>>
>>> On 1/29/2016 4:42 PM, Reindl Harald wrote:
>>>>
>>>>
>>>> Am 29.01.2016 um 11:40 schrieb Muhammad Faisal:
>>>>> *Hi Reindl,*
>>>>> I recompiled the package with  --disable-posix-cap and
>>>>> --enable-tproxy=force. Since im a bit new with ATS so kindly bear 
>>>>> with
>>>>> me. Should i recompile the ATS with " --with-ncurses " ????
>>>>>
>>>>> Below are the output of the command you have mentioned:
>>>>
>>>> where is "libcurl-devel" mentioned multiple times in that thread?
>>>>
>>>>> libsepol-devel-2.0.41-4.el6.x86_64
>>>>> pciutils-devel-3.1.10-4.el6.x86_64
>>>>> krb5-devel-1.10.3-42.el6.x86_64
>>>>> libcap-devel-2.16-5.5.el6.x86_64
>>>>> kernel-devel-2.6.32-573.12.1.el6.x86_64
>>>>> systemtap-devel-2.7-2.el6.x86_64
>>>>> keyutils-libs-devel-1.4-5.el6.x86_64
>>>>> pcre-devel-7.8-7.el6.x86_64
>>>>> hwloc-devel-1.5-3.el6_5.x86_64
>>>>> gettext-devel-0.17-18.el6.x86_64
>>>>> zlib-devel-1.2.3-29.el6.x86_64
>>>>> libselinux-devel-2.0.94-5.8.el6.x86_64
>>>>> tcl-devel-8.5.7-6.el6.x86_64
>>>>> libxml2-devel-2.7.6-20.el6_7.1.x86_64
>>>>> glibc-devel-2.12-1.166.el6_7.3.x86_64
>>>>> perl-devel-5.10.1-141.el6_7.1.x86_64
>>>>> ncurses-devel-5.7-4.20090207.el6.x86_64
>>>>> openssl-devel-1.0.1e-42.el6_7.2.x86_64
>>>>> gdbm-devel-1.8.0-38.el6.x86_64
>>>>> libstdc++-devel-4.4.7-16.el6.x86_64
>>>>> libcom_err-devel-1.41.12-22.el6.x86_64
>>>>> expat-devel-2.0.1-11.el6_2.x86_64
>>>>> db4-devel-4.7.25-20.el6_7.x86_64
>>>>>
>>>>> On 1/29/2016 2:45 PM, Reindl Harald wrote:
>>>>>> did you do anything after that hints?
>>
>


Re: Traffic_top command not found

Posted by Muhammad Faisal <fa...@yahoo.com>.
It worked.
Thanks Reindl for guiding me and im sorry for being annoying :(.

Thanks
F,

On 1/30/2016 6:39 AM, Reindl Harald wrote:
>
>
> Am 29.01.2016 um 18:50 schrieb Muhammad Faisal:
>> Thanks for your patience Reindl.
>> Refer to below now i have installed "libcurl-devel". Currently build is
>> with --enable-posix-cap and --enable-tproxy=force should i recompile?
>
> what else?
>
> install the build-dependency will not magically build it
>
>> [root@ats ~]# traffic_top
>> -bash: traffic_top: command not found
>> [root@wc01 ~]# rpm -qa | grep devel
>> libsepol-devel-2.0.41-4.el6.x86_64
>> pciutils-devel-3.1.10-4.el6.x86_64
>> krb5-devel-1.10.3-42.el6.x86_64
>> libcap-devel-2.16-5.5.el6.x86_64
>> libidn-devel-1.18-2.el6.x86_64
>> kernel-devel-2.6.32-573.12.1.el6.x86_64
>> systemtap-devel-2.7-2.el6.x86_64
>> keyutils-libs-devel-1.4-5.el6.x86_64
>> pcre-devel-7.8-7.el6.x86_64
>> hwloc-devel-1.5-3.el6_5.x86_64
>> gettext-devel-0.17-18.el6.x86_64
>> zlib-devel-1.2.3-29.el6.x86_64
>> libselinux-devel-2.0.94-5.8.el6.x86_64
>> tcl-devel-8.5.7-6.el6.x86_64
>> libxml2-devel-2.7.6-20.el6_7.1.x86_64
>> glibc-devel-2.12-1.166.el6_7.3.x86_64
>> perl-devel-5.10.1-141.el6_7.1.x86_64
>> ncurses-devel-5.7-4.20090207.el6.x86_64
>> openssl-devel-1.0.1e-42.el6_7.2.x86_64
>> libcurl-devel-7.19.7-46.el6.x86_64
>> gdbm-devel-1.8.0-38.el6.x86_64
>> libstdc++-devel-4.4.7-16.el6.x86_64
>> libcom_err-devel-1.41.12-22.el6.x86_64
>> expat-devel-2.0.1-11.el6_2.x86_64
>> db4-devel-4.7.25-20.el6_7.x86_64
>> [root@ats ~]#
>>
>>
>> On 1/29/2016 4:42 PM, Reindl Harald wrote:
>>>
>>>
>>> Am 29.01.2016 um 11:40 schrieb Muhammad Faisal:
>>>> *Hi Reindl,*
>>>> I recompiled the package with  --disable-posix-cap and
>>>> --enable-tproxy=force. Since im a bit new with ATS so kindly bear with
>>>> me. Should i recompile the ATS with " --with-ncurses " ????
>>>>
>>>> Below are the output of the command you have mentioned:
>>>
>>> where is "libcurl-devel" mentioned multiple times in that thread?
>>>
>>>> libsepol-devel-2.0.41-4.el6.x86_64
>>>> pciutils-devel-3.1.10-4.el6.x86_64
>>>> krb5-devel-1.10.3-42.el6.x86_64
>>>> libcap-devel-2.16-5.5.el6.x86_64
>>>> kernel-devel-2.6.32-573.12.1.el6.x86_64
>>>> systemtap-devel-2.7-2.el6.x86_64
>>>> keyutils-libs-devel-1.4-5.el6.x86_64
>>>> pcre-devel-7.8-7.el6.x86_64
>>>> hwloc-devel-1.5-3.el6_5.x86_64
>>>> gettext-devel-0.17-18.el6.x86_64
>>>> zlib-devel-1.2.3-29.el6.x86_64
>>>> libselinux-devel-2.0.94-5.8.el6.x86_64
>>>> tcl-devel-8.5.7-6.el6.x86_64
>>>> libxml2-devel-2.7.6-20.el6_7.1.x86_64
>>>> glibc-devel-2.12-1.166.el6_7.3.x86_64
>>>> perl-devel-5.10.1-141.el6_7.1.x86_64
>>>> ncurses-devel-5.7-4.20090207.el6.x86_64
>>>> openssl-devel-1.0.1e-42.el6_7.2.x86_64
>>>> gdbm-devel-1.8.0-38.el6.x86_64
>>>> libstdc++-devel-4.4.7-16.el6.x86_64
>>>> libcom_err-devel-1.41.12-22.el6.x86_64
>>>> expat-devel-2.0.1-11.el6_2.x86_64
>>>> db4-devel-4.7.25-20.el6_7.x86_64
>>>>
>>>> On 1/29/2016 2:45 PM, Reindl Harald wrote:
>>>>> did you do anything after that hints?
>


Re: Traffic_top command not found

Posted by Reindl Harald <h....@thelounge.net>.

Am 29.01.2016 um 18:50 schrieb Muhammad Faisal:
> Thanks for your patience Reindl.
> Refer to below now i have installed "libcurl-devel". Currently build is
> with --enable-posix-cap and --enable-tproxy=force should i recompile?

what else?

install the build-dependency will not magically build it

> [root@ats ~]# traffic_top
> -bash: traffic_top: command not found
> [root@wc01 ~]# rpm -qa | grep devel
> libsepol-devel-2.0.41-4.el6.x86_64
> pciutils-devel-3.1.10-4.el6.x86_64
> krb5-devel-1.10.3-42.el6.x86_64
> libcap-devel-2.16-5.5.el6.x86_64
> libidn-devel-1.18-2.el6.x86_64
> kernel-devel-2.6.32-573.12.1.el6.x86_64
> systemtap-devel-2.7-2.el6.x86_64
> keyutils-libs-devel-1.4-5.el6.x86_64
> pcre-devel-7.8-7.el6.x86_64
> hwloc-devel-1.5-3.el6_5.x86_64
> gettext-devel-0.17-18.el6.x86_64
> zlib-devel-1.2.3-29.el6.x86_64
> libselinux-devel-2.0.94-5.8.el6.x86_64
> tcl-devel-8.5.7-6.el6.x86_64
> libxml2-devel-2.7.6-20.el6_7.1.x86_64
> glibc-devel-2.12-1.166.el6_7.3.x86_64
> perl-devel-5.10.1-141.el6_7.1.x86_64
> ncurses-devel-5.7-4.20090207.el6.x86_64
> openssl-devel-1.0.1e-42.el6_7.2.x86_64
> libcurl-devel-7.19.7-46.el6.x86_64
> gdbm-devel-1.8.0-38.el6.x86_64
> libstdc++-devel-4.4.7-16.el6.x86_64
> libcom_err-devel-1.41.12-22.el6.x86_64
> expat-devel-2.0.1-11.el6_2.x86_64
> db4-devel-4.7.25-20.el6_7.x86_64
> [root@ats ~]#
>
>
> On 1/29/2016 4:42 PM, Reindl Harald wrote:
>>
>>
>> Am 29.01.2016 um 11:40 schrieb Muhammad Faisal:
>>> *Hi Reindl,*
>>> I recompiled the package with  --disable-posix-cap and
>>> --enable-tproxy=force. Since im a bit new with ATS so kindly bear with
>>> me. Should i recompile the ATS with " --with-ncurses " ????
>>>
>>> Below are the output of the command you have mentioned:
>>
>> where is "libcurl-devel" mentioned multiple times in that thread?
>>
>>> libsepol-devel-2.0.41-4.el6.x86_64
>>> pciutils-devel-3.1.10-4.el6.x86_64
>>> krb5-devel-1.10.3-42.el6.x86_64
>>> libcap-devel-2.16-5.5.el6.x86_64
>>> kernel-devel-2.6.32-573.12.1.el6.x86_64
>>> systemtap-devel-2.7-2.el6.x86_64
>>> keyutils-libs-devel-1.4-5.el6.x86_64
>>> pcre-devel-7.8-7.el6.x86_64
>>> hwloc-devel-1.5-3.el6_5.x86_64
>>> gettext-devel-0.17-18.el6.x86_64
>>> zlib-devel-1.2.3-29.el6.x86_64
>>> libselinux-devel-2.0.94-5.8.el6.x86_64
>>> tcl-devel-8.5.7-6.el6.x86_64
>>> libxml2-devel-2.7.6-20.el6_7.1.x86_64
>>> glibc-devel-2.12-1.166.el6_7.3.x86_64
>>> perl-devel-5.10.1-141.el6_7.1.x86_64
>>> ncurses-devel-5.7-4.20090207.el6.x86_64
>>> openssl-devel-1.0.1e-42.el6_7.2.x86_64
>>> gdbm-devel-1.8.0-38.el6.x86_64
>>> libstdc++-devel-4.4.7-16.el6.x86_64
>>> libcom_err-devel-1.41.12-22.el6.x86_64
>>> expat-devel-2.0.1-11.el6_2.x86_64
>>> db4-devel-4.7.25-20.el6_7.x86_64
>>>
>>> On 1/29/2016 2:45 PM, Reindl Harald wrote:
>>>> did you do anything after that hints?


Re: Traffic_top command not found

Posted by Muhammad Faisal <fa...@yahoo.com>.
Thanks for your patience Reindl.
Refer to below now i have installed "libcurl-devel". Currently build is 
with --enable-posix-cap and --enable-tproxy=force should i recompile?

[root@ats ~]# traffic_top
-bash: traffic_top: command not found
[root@wc01 ~]# rpm -qa | grep devel
libsepol-devel-2.0.41-4.el6.x86_64
pciutils-devel-3.1.10-4.el6.x86_64
krb5-devel-1.10.3-42.el6.x86_64
libcap-devel-2.16-5.5.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
kernel-devel-2.6.32-573.12.1.el6.x86_64
systemtap-devel-2.7-2.el6.x86_64
keyutils-libs-devel-1.4-5.el6.x86_64
pcre-devel-7.8-7.el6.x86_64
hwloc-devel-1.5-3.el6_5.x86_64
gettext-devel-0.17-18.el6.x86_64
zlib-devel-1.2.3-29.el6.x86_64
libselinux-devel-2.0.94-5.8.el6.x86_64
tcl-devel-8.5.7-6.el6.x86_64
libxml2-devel-2.7.6-20.el6_7.1.x86_64
glibc-devel-2.12-1.166.el6_7.3.x86_64
perl-devel-5.10.1-141.el6_7.1.x86_64
ncurses-devel-5.7-4.20090207.el6.x86_64
openssl-devel-1.0.1e-42.el6_7.2.x86_64
libcurl-devel-7.19.7-46.el6.x86_64
gdbm-devel-1.8.0-38.el6.x86_64
libstdc++-devel-4.4.7-16.el6.x86_64
libcom_err-devel-1.41.12-22.el6.x86_64
expat-devel-2.0.1-11.el6_2.x86_64
db4-devel-4.7.25-20.el6_7.x86_64
[root@ats ~]#


On 1/29/2016 4:42 PM, Reindl Harald wrote:
>
>
> Am 29.01.2016 um 11:40 schrieb Muhammad Faisal:
>> *Hi Reindl,*
>> I recompiled the package with  --disable-posix-cap and
>> --enable-tproxy=force. Since im a bit new with ATS so kindly bear with
>> me. Should i recompile the ATS with " --with-ncurses " ????
>>
>> Below are the output of the command you have mentioned:
>
> where is "libcurl-devel" mentioned multiple times in that thread?
>
>> libsepol-devel-2.0.41-4.el6.x86_64
>> pciutils-devel-3.1.10-4.el6.x86_64
>> krb5-devel-1.10.3-42.el6.x86_64
>> libcap-devel-2.16-5.5.el6.x86_64
>> kernel-devel-2.6.32-573.12.1.el6.x86_64
>> systemtap-devel-2.7-2.el6.x86_64
>> keyutils-libs-devel-1.4-5.el6.x86_64
>> pcre-devel-7.8-7.el6.x86_64
>> hwloc-devel-1.5-3.el6_5.x86_64
>> gettext-devel-0.17-18.el6.x86_64
>> zlib-devel-1.2.3-29.el6.x86_64
>> libselinux-devel-2.0.94-5.8.el6.x86_64
>> tcl-devel-8.5.7-6.el6.x86_64
>> libxml2-devel-2.7.6-20.el6_7.1.x86_64
>> glibc-devel-2.12-1.166.el6_7.3.x86_64
>> perl-devel-5.10.1-141.el6_7.1.x86_64
>> ncurses-devel-5.7-4.20090207.el6.x86_64
>> openssl-devel-1.0.1e-42.el6_7.2.x86_64
>> gdbm-devel-1.8.0-38.el6.x86_64
>> libstdc++-devel-4.4.7-16.el6.x86_64
>> libcom_err-devel-1.41.12-22.el6.x86_64
>> expat-devel-2.0.1-11.el6_2.x86_64
>> db4-devel-4.7.25-20.el6_7.x86_64
>>
>> On 1/29/2016 2:45 PM, Reindl Harald wrote:
>>> did you do anything after that hints?
>


Re: Traffic_top command not found

Posted by Reindl Harald <h....@thelounge.net>.

Am 29.01.2016 um 11:40 schrieb Muhammad Faisal:
> *Hi Reindl,*
> I recompiled the package with  --disable-posix-cap and
> --enable-tproxy=force. Since im a bit new with ATS so kindly bear with
> me. Should i recompile the ATS with " --with-ncurses " ????
>
> Below are the output of the command you have mentioned:

where is "libcurl-devel" mentioned multiple times in that thread?

> libsepol-devel-2.0.41-4.el6.x86_64
> pciutils-devel-3.1.10-4.el6.x86_64
> krb5-devel-1.10.3-42.el6.x86_64
> libcap-devel-2.16-5.5.el6.x86_64
> kernel-devel-2.6.32-573.12.1.el6.x86_64
> systemtap-devel-2.7-2.el6.x86_64
> keyutils-libs-devel-1.4-5.el6.x86_64
> pcre-devel-7.8-7.el6.x86_64
> hwloc-devel-1.5-3.el6_5.x86_64
> gettext-devel-0.17-18.el6.x86_64
> zlib-devel-1.2.3-29.el6.x86_64
> libselinux-devel-2.0.94-5.8.el6.x86_64
> tcl-devel-8.5.7-6.el6.x86_64
> libxml2-devel-2.7.6-20.el6_7.1.x86_64
> glibc-devel-2.12-1.166.el6_7.3.x86_64
> perl-devel-5.10.1-141.el6_7.1.x86_64
> ncurses-devel-5.7-4.20090207.el6.x86_64
> openssl-devel-1.0.1e-42.el6_7.2.x86_64
> gdbm-devel-1.8.0-38.el6.x86_64
> libstdc++-devel-4.4.7-16.el6.x86_64
> libcom_err-devel-1.41.12-22.el6.x86_64
> expat-devel-2.0.1-11.el6_2.x86_64
> db4-devel-4.7.25-20.el6_7.x86_64
>
> On 1/29/2016 2:45 PM, Reindl Harald wrote:
>> did you do anything after that hints?


Re: Traffic_top command not found

Posted by Muhammad Faisal <fa...@yahoo.com>.
*Hi Reindl,*
I recompiled the package with  --disable-posix-cap and 
--enable-tproxy=force. Since im a bit new with ATS so kindly bear with 
me. Should i recompile the ATS with " --with-ncurses " ????

Below are the output of the command you have mentioned:

libsepol-devel-2.0.41-4.el6.x86_64
pciutils-devel-3.1.10-4.el6.x86_64
krb5-devel-1.10.3-42.el6.x86_64
libcap-devel-2.16-5.5.el6.x86_64
kernel-devel-2.6.32-573.12.1.el6.x86_64
systemtap-devel-2.7-2.el6.x86_64
keyutils-libs-devel-1.4-5.el6.x86_64
pcre-devel-7.8-7.el6.x86_64
hwloc-devel-1.5-3.el6_5.x86_64
gettext-devel-0.17-18.el6.x86_64
zlib-devel-1.2.3-29.el6.x86_64
libselinux-devel-2.0.94-5.8.el6.x86_64
tcl-devel-8.5.7-6.el6.x86_64
libxml2-devel-2.7.6-20.el6_7.1.x86_64
glibc-devel-2.12-1.166.el6_7.3.x86_64
perl-devel-5.10.1-141.el6_7.1.x86_64
ncurses-devel-5.7-4.20090207.el6.x86_64
openssl-devel-1.0.1e-42.el6_7.2.x86_64
gdbm-devel-1.8.0-38.el6.x86_64
libstdc++-devel-4.4.7-16.el6.x86_64
libcom_err-devel-1.41.12-22.el6.x86_64
expat-devel-2.0.1-11.el6_2.x86_64
db4-devel-4.7.25-20.el6_7.x86_64


On 1/29/2016 2:45 PM, Reindl Harald wrote:
> did you do anything after that hints? 


Re: Traffic_top command not found

Posted by Reindl Harald <h....@thelounge.net>.

Am 29.01.2016 um 10:28 schrieb Muhammad Faisal:
> Dear Experts,
> Please update how to get traffic_top I'm running v6.0 at the moment

did you see the response with the two build-requires?
did you see the hints to curl und ncurses?
did you do anything after that hints?

what about attach the output of configure and list of installed devel 
packages (on Fedora rpm -qa | grep devel)

they are missing in my SPEC just because other packages on the 
buildserver pull them anyways and so they where never missed:
BuildRequires:	ncurses-devel
BuildRequires:	libcurl-devel

> On 1/28/2016 11:51 PM, Muhammad Faisal wrote:
>> I have rebuild and upgraded to version 6.0.0 but still traffic_top
>> command is missing. Contents of bin dir is as follows:
>>
>> [root@ats bin]# ls
>> traffic_cop       traffic_layout  traffic_logstats  trafficserver tspush
>> traffic_crashlog  traffic_line    traffic_manager   traffic_server tsxs
>> traffic_ctl       traffic_logcat  traffic_sac       traffic_via
>>
>> Please help
>>
>>
>> On 1/27/2016 7:47 PM, Reindl Harald wrote:
>>> no idea, i don't package to /usr/local
>>> with "--enable-layout=Gentoo" it ends in %{_bindir}/traffic*
>>>
>>> [builduser@buildserver:~]$ cat /rpmbuild/SPECS/trafficserver.spec
>>> %global            debug_package    %{nil}
>>>
>>> Summary:           Apache Trafficserver
>>> Name:              trafficserver
>>> Version:           5.3.2
>>> Release:           2%{?dist}
>>> Epoch:             2
>>> License:           ASL 2.0
>>> Group:             System Environment/Daemons
>>> Source0: http://www.apache.org/dist/%{name}/%{name}-%{version}.tar.bz2
>>> Source1:           %{name}.service
>>> Source2:           %{name}.tmpfilesd
>>> URL:               http://trafficserver.apache.org/index.html
>>> BuildRequires:     autoconf
>>> BuildRequires:     automake
>>> BuildRequires:     expat-devel
>>> BuildRequires:     gcc-c++
>>> BuildRequires:     hwloc-devel
>>> BuildRequires:     libtool
>>> BuildRequires:     openssl-devel
>>> BuildRequires:     pcre-devel
>>> BuildRequires:     tcl-devel
>>> BuildRequires:     xz-devel
>>> BuildRequires:     zlib-devel
>>> Requires:          systemd
>>>
>>> %description
>>> Apache Traffic Server is a fast, scalable and extensible HTTP/1.1
>>> compliant caching proxy server
>>>
>>> %package           devel
>>> Summary:           Apache Traffic Server development libraries and
>>> header files
>>> Group:             Development/Libraries
>>> Requires:          %{name} = %{version}-%{release}
>>> %description       devel
>>>
>>> %package           manpages
>>> Summary:           Trafficserver manuals
>>> Group:             Applications/System
>>> %description       manpages
>>>
>>> %package           plugins
>>> Summary:           Trafficserver plugins
>>> Group:             Applications/System
>>> %description       plugins
>>>
>>> %prep
>>> %setup -q
>>>
>>> %build
>>> export CFLAGS="%{optflags} -O3 -fPIC -fPIE
>>> -Wno-deprecated-declarations -Wno-error=unused-result -funroll-loops
>>> -funswitch-loops -minline-all-stringops -flto -ffat-lto-objects
>>> -fuse-ld=gold -fuse-linker-plugin"
>>> export CXXFLAGS="$CFLAGS"
>>> export LDFLAGS="-Wl,-z,now -Wl,-z,relro,-z,noexecstack,-fuse-ld=gold
>>> -pie %{optflags} -O3 -funroll-loops -funswitch-loops
>>> -minline-all-stringops -flto -ffat-lto-objects -fuse-ld=gold
>>> -fuse-linker-plugin"
>>> export SH_LDFLAGS="-Wl,-z,now
>>> -Wl,-z,relro,-z,noexecstack,-fuse-ld=gold %{optflags} -O3
>>> -funroll-loops -funswitch-loops -minline-all-stringops -flto
>>> -ffat-lto-objects -fuse-ld=gold -fuse-linker-plugin"
>>> ./configure --enable-layout=Gentoo \
>>>  --libdir=%{_libdir}/%{name} \
>>>  --with-tcl=%{_libdir} \
>>>  --with-jemalloc \
>>>  --with-user=ats \
>>>  --with-group=ats \
>>>  --with-pic \
>>>  --with-xml=expat \
>>>  --enable-shared  \
>>>  --enable-hwloc \
>>>  --disable-debug \
>>>  --disable-diags \
>>>  --disable-linux-native-aio \
>>>  --disable-reclaimable-freelist \
>>>  --disable-spdy \
>>>  --disable-static
>>> %{__make} %{?_smp_mflags}
>>>
>>> %install
>>> make install-strip DESTDIR=%{buildroot}
>>> mkdir -p %{buildroot}/run/%{name}
>>> install -D -m 0644 -p %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
>>> install -D -m 0644 -p %{SOURCE2}
>>> %{buildroot}%{_prefix}/lib/tmpfiles.d/%{name}.conf
>>> rm -rf %{buildroot}%{_docdir}/%{name} \
>>>  %{buildroot}%{_libdir}/perl5/ \
>>>  %{buildroot}%{_libdir}/%{name}/*.a \
>>>  %{buildroot}%{_libdir}/%{name}/*.la \
>>>  %{buildroot}%{_libdir}/%{name}/plugins/*.la \
>>>  %{buildroot}%{_datarootdir}/perl5/Apache/TS.pm \
>>>  %{buildroot}%{_datarootdir}/perl5/Apache/TS.pm.in \
>>>  %{buildroot}%{_datarootdir}/perl5/Apache/TS/AdminClient.pm \
>>>  %{buildroot}%{_datarootdir}/perl5/Apache/TS/Config.pm \
>>>  %{buildroot}%{_datarootdir}/perl5/Apache/TS/Config/Records.pm \
>>>  %{buildroot}%{_bindir}/tspush \
>>>  %{buildroot}%{_bindir}/traffic_shell \
>>>  %{buildroot}%{_bindir}/traffic_sac \
>>>  %{buildroot}%{_bindir}/trafficserver \
>>>  %{buildroot}%{_bindir}/tstop
>>> strip -s %{buildroot}%{_bindir}/traffic_cop \
>>>  %{buildroot}%{_bindir}/traffic_line \
>>>  %{buildroot}%{_bindir}/traffic_logcat \
>>>  %{buildroot}%{_bindir}/traffic_logstats \
>>>  %{buildroot}%{_bindir}/traffic_server \
>>>  %{buildroot}%{_libdir}/%{name}/*.so* \
>>>  %{buildroot}%{_libdir}/%{name}/plugins/*.so
>>> mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d \
>>>  %{buildroot}%{_sysconfdir}/%{name}/internal \
>>>  %{buildroot}%{_sysconfdir}/%{name}/snapshots \
>>>  %{buildroot}%{_sysconfdir}/%{name}/ssl \
>>>  %{buildroot}%{_docdir}/%{name}/etc/body_factory/default
>>> chmod 0770 %{buildroot}%{_sysconfdir}/%{name}/internal
>>> chmod 0770 %{buildroot}%{_sysconfdir}/%{name}/snapshots
>>> chmod 0750 %{buildroot}%{_sysconfdir}/%{name}/ssl
>>> chmod 0750 %{buildroot}%{_sysconfdir}/%{name}/body_factory
>>> echo "%{_libdir}/%{name}" >
>>> %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
>>> mv %{buildroot}%{_sysconfdir}/%{name}/body_factory/default/*
>>> %{buildroot}%{_docdir}/%{name}/etc/body_factory/default/
>>> mv %{buildroot}%{_sysconfdir}/%{name}/*.config
>>> %{buildroot}%{_docdir}/%{name}/etc/
>>>
>>> %post
>>> %{_sbindir}/ldconfig
>>> %{_bindir}/systemctl --system daemon-reload &> /dev/null
>>> chown root:ats %{_sysconfdir}/%{name}/body_factory &> /dev/null
>>> chown root:ats %{_sysconfdir}/%{name}/ssl &> /dev/null
>>> chown ats:ats %{_sysconfdir}/%{name}/internal &> /dev/null
>>> chown ats:ats %{_sysconfdir}/%{name}/snapshots &> /dev/null
>>> exit 0
>>>
>>> %pre
>>> getent group ats &> /dev/null || groupadd -r ats -g 176 &> /dev/null
>>> getent passwd ats &> /dev/null || useradd -r -u 176 -g ats -d / -s
>>> %{_sbindir}/nologin -c "Apache Traffic Server" ats &> /dev/null
>>> exit 0
>>>
>>> %files
>>> %dir %{_libdir}/%{name}
>>> %dir %{_sysconfdir}/%{name}
>>> %config(noreplace) %{_sysconfdir}/%{name}/*
>>> %{_bindir}/traffic*
>>> %{_libdir}/%{name}/*.so.*
>>> %{_unitdir}/%{name}.service
>>> %{_prefix}/lib/tmpfiles.d/%{name}.conf
>>> %attr(0770, ats, ats) %dir %{_var}/log/%{name}
>>> %attr(0770, ats, ats) %dir /run/%{name}
>>> %attr(0770, ats, ats) %dir %{_var}/cache/%{name}
>>> %attr(0644, root, root) %{_sysconfdir}/ld.so.conf.d/*
>>>
>>> %files devel
>>> %{_bindir}/tsxs
>>> %dir %{_includedir}/trafficserver
>>> %{_includedir}/trafficserver/*
>>> %{_libdir}/%{name}/*.so
>>> %{_libdir}/%{name}/pkgconfig/*.pc
>>>
>>> %files manpages
>>> %{_mandir}/man3/*
>>> %{_docdir}/%{name}/*
>>>
>>> %files plugins
>>> %dir %{_libdir}/%{name}/plugins
>>> %{_libdir}/%{name}/plugins/*.so
>>>
>>> %changelog
>>> * Tue Sep 15 2015 Reindl Harald <h....@thelounge.net>
>>> - update to 5.3.2
>>> - enable link-time-optimization
>>>
>>> * Mon Jul 6 2015 Reindl Harald <h....@thelounge.net>
>>> - update to 5.3.1
>>>
>>>
>>> Am 27.01.2016 um 14:46 schrieb Muhammad Faisal:
>>>> *Hello Reindl,*
>>>> The ATS is installed using default directory structure we did not
>>>> change
>>>> anything. The other command traffic_ctl, traffic_logstats are working
>>>> fine. Kindly see below and guide how to resolve this
>>>>
>>>> /usr/local/bin
>>>> [root@wc01 bin]# ls
>>>> traffic_cop       traffic_ctl     traffic_line traffic_logstats
>>>> traffic_sac    traffic_server  tspush
>>>> traffic_crashlog  traffic_layout  traffic_logcat traffic_manager
>>>> trafficserver  traffic_via     tsxs
>>>>
>>>> On 1/27/2016 5:59 PM, Reindl Harald wrote:
>>>>>
>>>>> Am 27.01.2016 um 13:34 schrieb Muhammad Faisal:
>>>>>> Thanks. Deployed mean installed in our lab with transparent bridging.
>>>>>> the traffic_top giving the below error:
>>>>>>
>>>>>> Installation is done by compiling from sources so the install
>>>>>> director
>>>>>> is /usr/local/etc/trafficserver
>>>>>
>>>>> nonsense, the binaries don't belong to /usr/local/etc/
>>>>> /usr/local has exactly the same hirachy as /usr
>>>>> hence /usr/local/sbin:/usr/local/bin is normally in the PATH
>>>>>
>>>>> fix your installation or your PATH setting
>>>>>
>>>>>> /usr/bin/which: no traffic_top in
>>>>>> (/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
>>>>>>
>>>>>>
>>>>>> On 1/27/2016 5:28 PM, Reindl Harald wrote:
>>>>>>>
>>>>>>>
>>>>>>> Am 27.01.2016 um 13:16 schrieb Muhammad Faisal:
>>>>>>>> We have recently deployed ATS 5.3.x when running traffic_top
>>>>>>>> command we
>>>>>>>> get error "-bash: traffic_top: command not found"
>>>>>>>
>>>>>>> deployed how?
>>>>>>>
>>>>>>> [root@proxy:~]$ which traffic_top
>>>>>>> /usr/bin/traffic_top
>>>>>>> [root@proxy:~]$
>>>>>>>
>>>>>>> [root@proxy:~]$ rpm -q --file /usr/bin/traffic_top
>>>>>>> trafficserver-5.3.2-2.fc22.20151012.rh.x86_64


Re: Traffic_top command not found

Posted by Muhammad Faisal <fa...@yahoo.com>.
Dear Experts,
Please update how to get traffic_top I'm running v6.0 at the moment.

F.

On 1/28/2016 11:51 PM, Muhammad Faisal wrote:
> I have rebuild and upgraded to version 6.0.0 but still traffic_top 
> command is missing. Contents of bin dir is as follows:
>
> [root@ats bin]# ls
> traffic_cop       traffic_layout  traffic_logstats  trafficserver tspush
> traffic_crashlog  traffic_line    traffic_manager   traffic_server tsxs
> traffic_ctl       traffic_logcat  traffic_sac       traffic_via
>
> Please help
>
>
> On 1/27/2016 7:47 PM, Reindl Harald wrote:
>> no idea, i don't package to /usr/local
>> with "--enable-layout=Gentoo" it ends in %{_bindir}/traffic*
>>
>> [builduser@buildserver:~]$ cat /rpmbuild/SPECS/trafficserver.spec
>> %global            debug_package    %{nil}
>>
>> Summary:           Apache Trafficserver
>> Name:              trafficserver
>> Version:           5.3.2
>> Release:           2%{?dist}
>> Epoch:             2
>> License:           ASL 2.0
>> Group:             System Environment/Daemons
>> Source0: http://www.apache.org/dist/%{name}/%{name}-%{version}.tar.bz2
>> Source1:           %{name}.service
>> Source2:           %{name}.tmpfilesd
>> URL:               http://trafficserver.apache.org/index.html
>> BuildRequires:     autoconf
>> BuildRequires:     automake
>> BuildRequires:     expat-devel
>> BuildRequires:     gcc-c++
>> BuildRequires:     hwloc-devel
>> BuildRequires:     libtool
>> BuildRequires:     openssl-devel
>> BuildRequires:     pcre-devel
>> BuildRequires:     tcl-devel
>> BuildRequires:     xz-devel
>> BuildRequires:     zlib-devel
>> Requires:          systemd
>>
>> %description
>> Apache Traffic Server is a fast, scalable and extensible HTTP/1.1 
>> compliant caching proxy server
>>
>> %package           devel
>> Summary:           Apache Traffic Server development libraries and 
>> header files
>> Group:             Development/Libraries
>> Requires:          %{name} = %{version}-%{release}
>> %description       devel
>>
>> %package           manpages
>> Summary:           Trafficserver manuals
>> Group:             Applications/System
>> %description       manpages
>>
>> %package           plugins
>> Summary:           Trafficserver plugins
>> Group:             Applications/System
>> %description       plugins
>>
>> %prep
>> %setup -q
>>
>> %build
>> export CFLAGS="%{optflags} -O3 -fPIC -fPIE 
>> -Wno-deprecated-declarations -Wno-error=unused-result -funroll-loops 
>> -funswitch-loops -minline-all-stringops -flto -ffat-lto-objects 
>> -fuse-ld=gold -fuse-linker-plugin"
>> export CXXFLAGS="$CFLAGS"
>> export LDFLAGS="-Wl,-z,now -Wl,-z,relro,-z,noexecstack,-fuse-ld=gold 
>> -pie %{optflags} -O3 -funroll-loops -funswitch-loops 
>> -minline-all-stringops -flto -ffat-lto-objects -fuse-ld=gold 
>> -fuse-linker-plugin"
>> export SH_LDFLAGS="-Wl,-z,now 
>> -Wl,-z,relro,-z,noexecstack,-fuse-ld=gold %{optflags} -O3 
>> -funroll-loops -funswitch-loops -minline-all-stringops -flto 
>> -ffat-lto-objects -fuse-ld=gold -fuse-linker-plugin"
>> ./configure --enable-layout=Gentoo \
>>  --libdir=%{_libdir}/%{name} \
>>  --with-tcl=%{_libdir} \
>>  --with-jemalloc \
>>  --with-user=ats \
>>  --with-group=ats \
>>  --with-pic \
>>  --with-xml=expat \
>>  --enable-shared  \
>>  --enable-hwloc \
>>  --disable-debug \
>>  --disable-diags \
>>  --disable-linux-native-aio \
>>  --disable-reclaimable-freelist \
>>  --disable-spdy \
>>  --disable-static
>> %{__make} %{?_smp_mflags}
>>
>> %install
>> make install-strip DESTDIR=%{buildroot}
>> mkdir -p %{buildroot}/run/%{name}
>> install -D -m 0644 -p %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
>> install -D -m 0644 -p %{SOURCE2} 
>> %{buildroot}%{_prefix}/lib/tmpfiles.d/%{name}.conf
>> rm -rf %{buildroot}%{_docdir}/%{name} \
>>  %{buildroot}%{_libdir}/perl5/ \
>>  %{buildroot}%{_libdir}/%{name}/*.a \
>>  %{buildroot}%{_libdir}/%{name}/*.la \
>>  %{buildroot}%{_libdir}/%{name}/plugins/*.la \
>>  %{buildroot}%{_datarootdir}/perl5/Apache/TS.pm \
>>  %{buildroot}%{_datarootdir}/perl5/Apache/TS.pm.in \
>>  %{buildroot}%{_datarootdir}/perl5/Apache/TS/AdminClient.pm \
>>  %{buildroot}%{_datarootdir}/perl5/Apache/TS/Config.pm \
>>  %{buildroot}%{_datarootdir}/perl5/Apache/TS/Config/Records.pm \
>>  %{buildroot}%{_bindir}/tspush \
>>  %{buildroot}%{_bindir}/traffic_shell \
>>  %{buildroot}%{_bindir}/traffic_sac \
>>  %{buildroot}%{_bindir}/trafficserver \
>>  %{buildroot}%{_bindir}/tstop
>> strip -s %{buildroot}%{_bindir}/traffic_cop \
>>  %{buildroot}%{_bindir}/traffic_line \
>>  %{buildroot}%{_bindir}/traffic_logcat \
>>  %{buildroot}%{_bindir}/traffic_logstats \
>>  %{buildroot}%{_bindir}/traffic_server \
>>  %{buildroot}%{_libdir}/%{name}/*.so* \
>>  %{buildroot}%{_libdir}/%{name}/plugins/*.so
>> mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d \
>>  %{buildroot}%{_sysconfdir}/%{name}/internal \
>>  %{buildroot}%{_sysconfdir}/%{name}/snapshots \
>>  %{buildroot}%{_sysconfdir}/%{name}/ssl \
>>  %{buildroot}%{_docdir}/%{name}/etc/body_factory/default
>> chmod 0770 %{buildroot}%{_sysconfdir}/%{name}/internal
>> chmod 0770 %{buildroot}%{_sysconfdir}/%{name}/snapshots
>> chmod 0750 %{buildroot}%{_sysconfdir}/%{name}/ssl
>> chmod 0750 %{buildroot}%{_sysconfdir}/%{name}/body_factory
>> echo "%{_libdir}/%{name}" > 
>> %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
>> mv %{buildroot}%{_sysconfdir}/%{name}/body_factory/default/* 
>> %{buildroot}%{_docdir}/%{name}/etc/body_factory/default/
>> mv %{buildroot}%{_sysconfdir}/%{name}/*.config 
>> %{buildroot}%{_docdir}/%{name}/etc/
>>
>> %post
>> %{_sbindir}/ldconfig
>> %{_bindir}/systemctl --system daemon-reload &> /dev/null
>> chown root:ats %{_sysconfdir}/%{name}/body_factory &> /dev/null
>> chown root:ats %{_sysconfdir}/%{name}/ssl &> /dev/null
>> chown ats:ats %{_sysconfdir}/%{name}/internal &> /dev/null
>> chown ats:ats %{_sysconfdir}/%{name}/snapshots &> /dev/null
>> exit 0
>>
>> %pre
>> getent group ats &> /dev/null || groupadd -r ats -g 176 &> /dev/null
>> getent passwd ats &> /dev/null || useradd -r -u 176 -g ats -d / -s 
>> %{_sbindir}/nologin -c "Apache Traffic Server" ats &> /dev/null
>> exit 0
>>
>> %files
>> %dir %{_libdir}/%{name}
>> %dir %{_sysconfdir}/%{name}
>> %config(noreplace) %{_sysconfdir}/%{name}/*
>> %{_bindir}/traffic*
>> %{_libdir}/%{name}/*.so.*
>> %{_unitdir}/%{name}.service
>> %{_prefix}/lib/tmpfiles.d/%{name}.conf
>> %attr(0770, ats, ats) %dir %{_var}/log/%{name}
>> %attr(0770, ats, ats) %dir /run/%{name}
>> %attr(0770, ats, ats) %dir %{_var}/cache/%{name}
>> %attr(0644, root, root) %{_sysconfdir}/ld.so.conf.d/*
>>
>> %files devel
>> %{_bindir}/tsxs
>> %dir %{_includedir}/trafficserver
>> %{_includedir}/trafficserver/*
>> %{_libdir}/%{name}/*.so
>> %{_libdir}/%{name}/pkgconfig/*.pc
>>
>> %files manpages
>> %{_mandir}/man3/*
>> %{_docdir}/%{name}/*
>>
>> %files plugins
>> %dir %{_libdir}/%{name}/plugins
>> %{_libdir}/%{name}/plugins/*.so
>>
>> %changelog
>> * Tue Sep 15 2015 Reindl Harald <h....@thelounge.net>
>> - update to 5.3.2
>> - enable link-time-optimization
>>
>> * Mon Jul 6 2015 Reindl Harald <h....@thelounge.net>
>> - update to 5.3.1
>>
>>
>> Am 27.01.2016 um 14:46 schrieb Muhammad Faisal:
>>> *Hello Reindl,*
>>> The ATS is installed using default directory structure we did not 
>>> change
>>> anything. The other command traffic_ctl, traffic_logstats are working
>>> fine. Kindly see below and guide how to resolve this
>>>
>>> /usr/local/bin
>>> [root@wc01 bin]# ls
>>> traffic_cop       traffic_ctl     traffic_line traffic_logstats
>>> traffic_sac    traffic_server  tspush
>>> traffic_crashlog  traffic_layout  traffic_logcat traffic_manager
>>> trafficserver  traffic_via     tsxs
>>>
>>> On 1/27/2016 5:59 PM, Reindl Harald wrote:
>>>>
>>>> Am 27.01.2016 um 13:34 schrieb Muhammad Faisal:
>>>>> Thanks. Deployed mean installed in our lab with transparent bridging.
>>>>> the traffic_top giving the below error:
>>>>>
>>>>> Installation is done by compiling from sources so the install 
>>>>> director
>>>>> is /usr/local/etc/trafficserver
>>>>
>>>> nonsense, the binaries don't belong to /usr/local/etc/
>>>> /usr/local has exactly the same hirachy as /usr
>>>> hence /usr/local/sbin:/usr/local/bin is normally in the PATH
>>>>
>>>> fix your installation or your PATH setting
>>>>
>>>>> /usr/bin/which: no traffic_top in
>>>>> (/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin) 
>>>>>
>>>>>
>>>>> On 1/27/2016 5:28 PM, Reindl Harald wrote:
>>>>>>
>>>>>>
>>>>>> Am 27.01.2016 um 13:16 schrieb Muhammad Faisal:
>>>>>>> We have recently deployed ATS 5.3.x when running traffic_top
>>>>>>> command we
>>>>>>> get error "-bash: traffic_top: command not found"
>>>>>>
>>>>>> deployed how?
>>>>>>
>>>>>> [root@proxy:~]$ which traffic_top
>>>>>> /usr/bin/traffic_top
>>>>>> [root@proxy:~]$
>>>>>>
>>>>>> [root@proxy:~]$ rpm -q --file /usr/bin/traffic_top
>>>>>> trafficserver-5.3.2-2.fc22.20151012.rh.x86_64
>>
>


Re: Traffic_top command not found

Posted by David Carlin <dc...@yahoo-inc.com>.
Did you try Masaori Koshiba's suggestion?  check if configure found curses.

David

      From: Muhammad Faisal <fa...@yahoo.com>
 To: users@trafficserver.apache.org 
 Sent: Thursday, January 28, 2016 1:51 PM
 Subject: Re: Traffic_top command not found
   
I have rebuild and upgraded to version 6.0.0 but still traffic_top 
command is missing. Contents of bin dir is as follows:

[root@ats bin]# ls
traffic_cop      traffic_layout  traffic_logstats  trafficserver tspush
traffic_crashlog  traffic_line    traffic_manager  traffic_server tsxs
traffic_ctl      traffic_logcat  traffic_sac      traffic_via

Please help


On 1/27/2016 7:47 PM, Reindl Harald wrote:
> no idea, i don't package to /usr/local
> with "--enable-layout=Gentoo" it ends in %{_bindir}/traffic*
>
> [builduser@buildserver:~]$ cat /rpmbuild/SPECS/trafficserver.spec
> %global            debug_package    %{nil}
>
> Summary:          Apache Trafficserver
> Name:              trafficserver
> Version:          5.3.2
> Release:          2%{?dist}
> Epoch:            2
> License:          ASL 2.0
> Group:            System Environment/Daemons
> Source0: http://www.apache.org/dist/%{name}/%{name}-%{version}.tar.bz2
> Source1:          %{name}.service
> Source2:          %{name}.tmpfilesd
> URL:              http://trafficserver.apache.org/index.html
> BuildRequires:    autoconf
> BuildRequires:    automake
> BuildRequires:    expat-devel
> BuildRequires:    gcc-c++
> BuildRequires:    hwloc-devel
> BuildRequires:    libtool
> BuildRequires:    openssl-devel
> BuildRequires:    pcre-devel
> BuildRequires:    tcl-devel
> BuildRequires:    xz-devel
> BuildRequires:    zlib-devel
> Requires:          systemd
>
> %description
> Apache Traffic Server is a fast, scalable and extensible HTTP/1.1 
> compliant caching proxy server
>
> %package          devel
> Summary:          Apache Traffic Server development libraries and 
> header files
> Group:            Development/Libraries
> Requires:          %{name} = %{version}-%{release}
> %description      devel
>
> %package          manpages
> Summary:          Trafficserver manuals
> Group:            Applications/System
> %description      manpages
>
> %package          plugins
> Summary:          Trafficserver plugins
> Group:            Applications/System
> %description      plugins
>
> %prep
> %setup -q
>
> %build
> export CFLAGS="%{optflags} -O3 -fPIC -fPIE 
> -Wno-deprecated-declarations -Wno-error=unused-result -funroll-loops 
> -funswitch-loops -minline-all-stringops -flto -ffat-lto-objects 
> -fuse-ld=gold -fuse-linker-plugin"
> export CXXFLAGS="$CFLAGS"
> export LDFLAGS="-Wl,-z,now -Wl,-z,relro,-z,noexecstack,-fuse-ld=gold 
> -pie %{optflags} -O3 -funroll-loops -funswitch-loops 
> -minline-all-stringops -flto -ffat-lto-objects -fuse-ld=gold 
> -fuse-linker-plugin"
> export SH_LDFLAGS="-Wl,-z,now 
> -Wl,-z,relro,-z,noexecstack,-fuse-ld=gold %{optflags} -O3 
> -funroll-loops -funswitch-loops -minline-all-stringops -flto 
> -ffat-lto-objects -fuse-ld=gold -fuse-linker-plugin"
> ./configure --enable-layout=Gentoo \
>  --libdir=%{_libdir}/%{name} \
>  --with-tcl=%{_libdir} \
>  --with-jemalloc \
>  --with-user=ats \
>  --with-group=ats \
>  --with-pic \
>  --with-xml=expat \
>  --enable-shared  \
>  --enable-hwloc \
>  --disable-debug \
>  --disable-diags \
>  --disable-linux-native-aio \
>  --disable-reclaimable-freelist \
>  --disable-spdy \
>  --disable-static
> %{__make} %{?_smp_mflags}
>
> %install
> make install-strip DESTDIR=%{buildroot}
> mkdir -p %{buildroot}/run/%{name}
> install -D -m 0644 -p %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
> install -D -m 0644 -p %{SOURCE2} 
> %{buildroot}%{_prefix}/lib/tmpfiles.d/%{name}.conf
> rm -rf %{buildroot}%{_docdir}/%{name} \
>  %{buildroot}%{_libdir}/perl5/ \
>  %{buildroot}%{_libdir}/%{name}/*.a \
>  %{buildroot}%{_libdir}/%{name}/*.la \
>  %{buildroot}%{_libdir}/%{name}/plugins/*.la \
>  %{buildroot}%{_datarootdir}/perl5/Apache/TS.pm \
>  %{buildroot}%{_datarootdir}/perl5/Apache/TS.pm.in \
>  %{buildroot}%{_datarootdir}/perl5/Apache/TS/AdminClient.pm \
>  %{buildroot}%{_datarootdir}/perl5/Apache/TS/Config.pm \
>  %{buildroot}%{_datarootdir}/perl5/Apache/TS/Config/Records.pm \
>  %{buildroot}%{_bindir}/tspush \
>  %{buildroot}%{_bindir}/traffic_shell \
>  %{buildroot}%{_bindir}/traffic_sac \
>  %{buildroot}%{_bindir}/trafficserver \
>  %{buildroot}%{_bindir}/tstop
> strip -s %{buildroot}%{_bindir}/traffic_cop \
>  %{buildroot}%{_bindir}/traffic_line \
>  %{buildroot}%{_bindir}/traffic_logcat \
>  %{buildroot}%{_bindir}/traffic_logstats \
>  %{buildroot}%{_bindir}/traffic_server \
>  %{buildroot}%{_libdir}/%{name}/*.so* \
>  %{buildroot}%{_libdir}/%{name}/plugins/*.so
> mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d \
>  %{buildroot}%{_sysconfdir}/%{name}/internal \
>  %{buildroot}%{_sysconfdir}/%{name}/snapshots \
>  %{buildroot}%{_sysconfdir}/%{name}/ssl \
>  %{buildroot}%{_docdir}/%{name}/etc/body_factory/default
> chmod 0770 %{buildroot}%{_sysconfdir}/%{name}/internal
> chmod 0770 %{buildroot}%{_sysconfdir}/%{name}/snapshots
> chmod 0750 %{buildroot}%{_sysconfdir}/%{name}/ssl
> chmod 0750 %{buildroot}%{_sysconfdir}/%{name}/body_factory
> echo "%{_libdir}/%{name}" > 
> %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
> mv %{buildroot}%{_sysconfdir}/%{name}/body_factory/default/* 
> %{buildroot}%{_docdir}/%{name}/etc/body_factory/default/
> mv %{buildroot}%{_sysconfdir}/%{name}/*.config 
> %{buildroot}%{_docdir}/%{name}/etc/
>
> %post
> %{_sbindir}/ldconfig
> %{_bindir}/systemctl --system daemon-reload &> /dev/null
> chown root:ats %{_sysconfdir}/%{name}/body_factory &> /dev/null
> chown root:ats %{_sysconfdir}/%{name}/ssl &> /dev/null
> chown ats:ats %{_sysconfdir}/%{name}/internal &> /dev/null
> chown ats:ats %{_sysconfdir}/%{name}/snapshots &> /dev/null
> exit 0
>
> %pre
> getent group ats &> /dev/null || groupadd -r ats -g 176 &> /dev/null
> getent passwd ats &> /dev/null || useradd -r -u 176 -g ats -d / -s 
> %{_sbindir}/nologin -c "Apache Traffic Server" ats &> /dev/null
> exit 0
>
> %files
> %dir %{_libdir}/%{name}
> %dir %{_sysconfdir}/%{name}
> %config(noreplace) %{_sysconfdir}/%{name}/*
> %{_bindir}/traffic*
> %{_libdir}/%{name}/*.so.*
> %{_unitdir}/%{name}.service
> %{_prefix}/lib/tmpfiles.d/%{name}.conf
> %attr(0770, ats, ats) %dir %{_var}/log/%{name}
> %attr(0770, ats, ats) %dir /run/%{name}
> %attr(0770, ats, ats) %dir %{_var}/cache/%{name}
> %attr(0644, root, root) %{_sysconfdir}/ld.so.conf.d/*
>
> %files devel
> %{_bindir}/tsxs
> %dir %{_includedir}/trafficserver
> %{_includedir}/trafficserver/*
> %{_libdir}/%{name}/*.so
> %{_libdir}/%{name}/pkgconfig/*.pc
>
> %files manpages
> %{_mandir}/man3/*
> %{_docdir}/%{name}/*
>
> %files plugins
> %dir %{_libdir}/%{name}/plugins
> %{_libdir}/%{name}/plugins/*.so
>
> %changelog
> * Tue Sep 15 2015 Reindl Harald <h....@thelounge.net>
> - update to 5.3.2
> - enable link-time-optimization
>
> * Mon Jul 6 2015 Reindl Harald <h....@thelounge.net>
> - update to 5.3.1
>
>
> Am 27.01.2016 um 14:46 schrieb Muhammad Faisal:
>> *Hello Reindl,*
>> The ATS is installed using default directory structure we did not change
>> anything. The other command traffic_ctl, traffic_logstats are working
>> fine. Kindly see below and guide how to resolve this
>>
>> /usr/local/bin
>> [root@wc01 bin]# ls
>> traffic_cop      traffic_ctl    traffic_line traffic_logstats
>> traffic_sac    traffic_server  tspush
>> traffic_crashlog  traffic_layout  traffic_logcat traffic_manager
>> trafficserver  traffic_via    tsxs
>>
>> On 1/27/2016 5:59 PM, Reindl Harald wrote:
>>>
>>> Am 27.01.2016 um 13:34 schrieb Muhammad Faisal:
>>>> Thanks. Deployed mean installed in our lab with transparent bridging.
>>>> the traffic_top giving the below error:
>>>>
>>>> Installation is done by compiling from sources so the install director
>>>> is /usr/local/etc/trafficserver
>>>
>>> nonsense, the binaries don't belong to /usr/local/etc/
>>> /usr/local has exactly the same hirachy as /usr
>>> hence /usr/local/sbin:/usr/local/bin is normally in the PATH
>>>
>>> fix your installation or your PATH setting
>>>
>>>> /usr/bin/which: no traffic_top in
>>>> (/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin) 
>>>>
>>>>
>>>> On 1/27/2016 5:28 PM, Reindl Harald wrote:
>>>>>
>>>>>
>>>>> Am 27.01.2016 um 13:16 schrieb Muhammad Faisal:
>>>>>> We have recently deployed ATS 5.3.x when running traffic_top
>>>>>> command we
>>>>>> get error "-bash: traffic_top: command not found"
>>>>>
>>>>> deployed how?
>>>>>
>>>>> [root@proxy:~]$ which traffic_top
>>>>> /usr/bin/traffic_top
>>>>> [root@proxy:~]$
>>>>>
>>>>> [root@proxy:~]$ rpm -q --file /usr/bin/traffic_top
>>>>> trafficserver-5.3.2-2.fc22.20151012.rh.x86_64
>



  

Re: Traffic_top command not found

Posted by Muhammad Faisal <fa...@yahoo.com>.
I have rebuild and upgraded to version 6.0.0 but still traffic_top 
command is missing. Contents of bin dir is as follows:

[root@ats bin]# ls
traffic_cop       traffic_layout  traffic_logstats  trafficserver tspush
traffic_crashlog  traffic_line    traffic_manager   traffic_server tsxs
traffic_ctl       traffic_logcat  traffic_sac       traffic_via

Please help


On 1/27/2016 7:47 PM, Reindl Harald wrote:
> no idea, i don't package to /usr/local
> with "--enable-layout=Gentoo" it ends in %{_bindir}/traffic*
>
> [builduser@buildserver:~]$ cat /rpmbuild/SPECS/trafficserver.spec
> %global            debug_package    %{nil}
>
> Summary:           Apache Trafficserver
> Name:              trafficserver
> Version:           5.3.2
> Release:           2%{?dist}
> Epoch:             2
> License:           ASL 2.0
> Group:             System Environment/Daemons
> Source0: http://www.apache.org/dist/%{name}/%{name}-%{version}.tar.bz2
> Source1:           %{name}.service
> Source2:           %{name}.tmpfilesd
> URL:               http://trafficserver.apache.org/index.html
> BuildRequires:     autoconf
> BuildRequires:     automake
> BuildRequires:     expat-devel
> BuildRequires:     gcc-c++
> BuildRequires:     hwloc-devel
> BuildRequires:     libtool
> BuildRequires:     openssl-devel
> BuildRequires:     pcre-devel
> BuildRequires:     tcl-devel
> BuildRequires:     xz-devel
> BuildRequires:     zlib-devel
> Requires:          systemd
>
> %description
> Apache Traffic Server is a fast, scalable and extensible HTTP/1.1 
> compliant caching proxy server
>
> %package           devel
> Summary:           Apache Traffic Server development libraries and 
> header files
> Group:             Development/Libraries
> Requires:          %{name} = %{version}-%{release}
> %description       devel
>
> %package           manpages
> Summary:           Trafficserver manuals
> Group:             Applications/System
> %description       manpages
>
> %package           plugins
> Summary:           Trafficserver plugins
> Group:             Applications/System
> %description       plugins
>
> %prep
> %setup -q
>
> %build
> export CFLAGS="%{optflags} -O3 -fPIC -fPIE 
> -Wno-deprecated-declarations -Wno-error=unused-result -funroll-loops 
> -funswitch-loops -minline-all-stringops -flto -ffat-lto-objects 
> -fuse-ld=gold -fuse-linker-plugin"
> export CXXFLAGS="$CFLAGS"
> export LDFLAGS="-Wl,-z,now -Wl,-z,relro,-z,noexecstack,-fuse-ld=gold 
> -pie %{optflags} -O3 -funroll-loops -funswitch-loops 
> -minline-all-stringops -flto -ffat-lto-objects -fuse-ld=gold 
> -fuse-linker-plugin"
> export SH_LDFLAGS="-Wl,-z,now 
> -Wl,-z,relro,-z,noexecstack,-fuse-ld=gold %{optflags} -O3 
> -funroll-loops -funswitch-loops -minline-all-stringops -flto 
> -ffat-lto-objects -fuse-ld=gold -fuse-linker-plugin"
> ./configure --enable-layout=Gentoo \
>  --libdir=%{_libdir}/%{name} \
>  --with-tcl=%{_libdir} \
>  --with-jemalloc \
>  --with-user=ats \
>  --with-group=ats \
>  --with-pic \
>  --with-xml=expat \
>  --enable-shared  \
>  --enable-hwloc \
>  --disable-debug \
>  --disable-diags \
>  --disable-linux-native-aio \
>  --disable-reclaimable-freelist \
>  --disable-spdy \
>  --disable-static
> %{__make} %{?_smp_mflags}
>
> %install
> make install-strip DESTDIR=%{buildroot}
> mkdir -p %{buildroot}/run/%{name}
> install -D -m 0644 -p %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
> install -D -m 0644 -p %{SOURCE2} 
> %{buildroot}%{_prefix}/lib/tmpfiles.d/%{name}.conf
> rm -rf %{buildroot}%{_docdir}/%{name} \
>  %{buildroot}%{_libdir}/perl5/ \
>  %{buildroot}%{_libdir}/%{name}/*.a \
>  %{buildroot}%{_libdir}/%{name}/*.la \
>  %{buildroot}%{_libdir}/%{name}/plugins/*.la \
>  %{buildroot}%{_datarootdir}/perl5/Apache/TS.pm \
>  %{buildroot}%{_datarootdir}/perl5/Apache/TS.pm.in \
>  %{buildroot}%{_datarootdir}/perl5/Apache/TS/AdminClient.pm \
>  %{buildroot}%{_datarootdir}/perl5/Apache/TS/Config.pm \
>  %{buildroot}%{_datarootdir}/perl5/Apache/TS/Config/Records.pm \
>  %{buildroot}%{_bindir}/tspush \
>  %{buildroot}%{_bindir}/traffic_shell \
>  %{buildroot}%{_bindir}/traffic_sac \
>  %{buildroot}%{_bindir}/trafficserver \
>  %{buildroot}%{_bindir}/tstop
> strip -s %{buildroot}%{_bindir}/traffic_cop \
>  %{buildroot}%{_bindir}/traffic_line \
>  %{buildroot}%{_bindir}/traffic_logcat \
>  %{buildroot}%{_bindir}/traffic_logstats \
>  %{buildroot}%{_bindir}/traffic_server \
>  %{buildroot}%{_libdir}/%{name}/*.so* \
>  %{buildroot}%{_libdir}/%{name}/plugins/*.so
> mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d \
>  %{buildroot}%{_sysconfdir}/%{name}/internal \
>  %{buildroot}%{_sysconfdir}/%{name}/snapshots \
>  %{buildroot}%{_sysconfdir}/%{name}/ssl \
>  %{buildroot}%{_docdir}/%{name}/etc/body_factory/default
> chmod 0770 %{buildroot}%{_sysconfdir}/%{name}/internal
> chmod 0770 %{buildroot}%{_sysconfdir}/%{name}/snapshots
> chmod 0750 %{buildroot}%{_sysconfdir}/%{name}/ssl
> chmod 0750 %{buildroot}%{_sysconfdir}/%{name}/body_factory
> echo "%{_libdir}/%{name}" > 
> %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
> mv %{buildroot}%{_sysconfdir}/%{name}/body_factory/default/* 
> %{buildroot}%{_docdir}/%{name}/etc/body_factory/default/
> mv %{buildroot}%{_sysconfdir}/%{name}/*.config 
> %{buildroot}%{_docdir}/%{name}/etc/
>
> %post
> %{_sbindir}/ldconfig
> %{_bindir}/systemctl --system daemon-reload &> /dev/null
> chown root:ats %{_sysconfdir}/%{name}/body_factory &> /dev/null
> chown root:ats %{_sysconfdir}/%{name}/ssl &> /dev/null
> chown ats:ats %{_sysconfdir}/%{name}/internal &> /dev/null
> chown ats:ats %{_sysconfdir}/%{name}/snapshots &> /dev/null
> exit 0
>
> %pre
> getent group ats &> /dev/null || groupadd -r ats -g 176 &> /dev/null
> getent passwd ats &> /dev/null || useradd -r -u 176 -g ats -d / -s 
> %{_sbindir}/nologin -c "Apache Traffic Server" ats &> /dev/null
> exit 0
>
> %files
> %dir %{_libdir}/%{name}
> %dir %{_sysconfdir}/%{name}
> %config(noreplace) %{_sysconfdir}/%{name}/*
> %{_bindir}/traffic*
> %{_libdir}/%{name}/*.so.*
> %{_unitdir}/%{name}.service
> %{_prefix}/lib/tmpfiles.d/%{name}.conf
> %attr(0770, ats, ats) %dir %{_var}/log/%{name}
> %attr(0770, ats, ats) %dir /run/%{name}
> %attr(0770, ats, ats) %dir %{_var}/cache/%{name}
> %attr(0644, root, root) %{_sysconfdir}/ld.so.conf.d/*
>
> %files devel
> %{_bindir}/tsxs
> %dir %{_includedir}/trafficserver
> %{_includedir}/trafficserver/*
> %{_libdir}/%{name}/*.so
> %{_libdir}/%{name}/pkgconfig/*.pc
>
> %files manpages
> %{_mandir}/man3/*
> %{_docdir}/%{name}/*
>
> %files plugins
> %dir %{_libdir}/%{name}/plugins
> %{_libdir}/%{name}/plugins/*.so
>
> %changelog
> * Tue Sep 15 2015 Reindl Harald <h....@thelounge.net>
> - update to 5.3.2
> - enable link-time-optimization
>
> * Mon Jul 6 2015 Reindl Harald <h....@thelounge.net>
> - update to 5.3.1
>
>
> Am 27.01.2016 um 14:46 schrieb Muhammad Faisal:
>> *Hello Reindl,*
>> The ATS is installed using default directory structure we did not change
>> anything. The other command traffic_ctl, traffic_logstats are working
>> fine. Kindly see below and guide how to resolve this
>>
>> /usr/local/bin
>> [root@wc01 bin]# ls
>> traffic_cop       traffic_ctl     traffic_line traffic_logstats
>> traffic_sac    traffic_server  tspush
>> traffic_crashlog  traffic_layout  traffic_logcat traffic_manager
>> trafficserver  traffic_via     tsxs
>>
>> On 1/27/2016 5:59 PM, Reindl Harald wrote:
>>>
>>> Am 27.01.2016 um 13:34 schrieb Muhammad Faisal:
>>>> Thanks. Deployed mean installed in our lab with transparent bridging.
>>>> the traffic_top giving the below error:
>>>>
>>>> Installation is done by compiling from sources so the install director
>>>> is /usr/local/etc/trafficserver
>>>
>>> nonsense, the binaries don't belong to /usr/local/etc/
>>> /usr/local has exactly the same hirachy as /usr
>>> hence /usr/local/sbin:/usr/local/bin is normally in the PATH
>>>
>>> fix your installation or your PATH setting
>>>
>>>> /usr/bin/which: no traffic_top in
>>>> (/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin) 
>>>>
>>>>
>>>> On 1/27/2016 5:28 PM, Reindl Harald wrote:
>>>>>
>>>>>
>>>>> Am 27.01.2016 um 13:16 schrieb Muhammad Faisal:
>>>>>> We have recently deployed ATS 5.3.x when running traffic_top
>>>>>> command we
>>>>>> get error "-bash: traffic_top: command not found"
>>>>>
>>>>> deployed how?
>>>>>
>>>>> [root@proxy:~]$ which traffic_top
>>>>> /usr/bin/traffic_top
>>>>> [root@proxy:~]$
>>>>>
>>>>> [root@proxy:~]$ rpm -q --file /usr/bin/traffic_top
>>>>> trafficserver-5.3.2-2.fc22.20151012.rh.x86_64
>


Re: Traffic_top command not found

Posted by Reindl Harald <h....@thelounge.net>.
no idea, i don't package to /usr/local
with "--enable-layout=Gentoo" it ends in %{_bindir}/traffic*

[builduser@buildserver:~]$ cat /rpmbuild/SPECS/trafficserver.spec
%global            debug_package    %{nil}

Summary:           Apache Trafficserver
Name:              trafficserver
Version:           5.3.2
Release:           2%{?dist}
Epoch:             2
License:           ASL 2.0
Group:             System Environment/Daemons
Source0: 
http://www.apache.org/dist/%{name}/%{name}-%{version}.tar.bz2
Source1:           %{name}.service
Source2:           %{name}.tmpfilesd
URL:               http://trafficserver.apache.org/index.html
BuildRequires:     autoconf
BuildRequires:     automake
BuildRequires:     expat-devel
BuildRequires:     gcc-c++
BuildRequires:     hwloc-devel
BuildRequires:     libtool
BuildRequires:     openssl-devel
BuildRequires:     pcre-devel
BuildRequires:     tcl-devel
BuildRequires:     xz-devel
BuildRequires:     zlib-devel
Requires:          systemd

%description
Apache Traffic Server is a fast, scalable and extensible HTTP/1.1 
compliant caching proxy server

%package           devel
Summary:           Apache Traffic Server development libraries and 
header files
Group:             Development/Libraries
Requires:          %{name} = %{version}-%{release}
%description       devel

%package           manpages
Summary:           Trafficserver manuals
Group:             Applications/System
%description       manpages

%package           plugins
Summary:           Trafficserver plugins
Group:             Applications/System
%description       plugins

%prep
%setup -q

%build
export CFLAGS="%{optflags} -O3 -fPIC -fPIE -Wno-deprecated-declarations 
-Wno-error=unused-result -funroll-loops -funswitch-loops 
-minline-all-stringops -flto -ffat-lto-objects -fuse-ld=gold 
-fuse-linker-plugin"
export CXXFLAGS="$CFLAGS"
export LDFLAGS="-Wl,-z,now -Wl,-z,relro,-z,noexecstack,-fuse-ld=gold 
-pie %{optflags} -O3 -funroll-loops -funswitch-loops 
-minline-all-stringops -flto -ffat-lto-objects -fuse-ld=gold 
-fuse-linker-plugin"
export SH_LDFLAGS="-Wl,-z,now -Wl,-z,relro,-z,noexecstack,-fuse-ld=gold 
%{optflags} -O3 -funroll-loops -funswitch-loops -minline-all-stringops 
-flto -ffat-lto-objects -fuse-ld=gold -fuse-linker-plugin"
./configure --enable-layout=Gentoo \
  --libdir=%{_libdir}/%{name} \
  --with-tcl=%{_libdir} \
  --with-jemalloc \
  --with-user=ats \
  --with-group=ats \
  --with-pic \
  --with-xml=expat \
  --enable-shared  \
  --enable-hwloc \
  --disable-debug \
  --disable-diags \
  --disable-linux-native-aio \
  --disable-reclaimable-freelist \
  --disable-spdy \
  --disable-static
%{__make} %{?_smp_mflags}

%install
make install-strip DESTDIR=%{buildroot}
mkdir -p %{buildroot}/run/%{name}
install -D -m 0644 -p %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
install -D -m 0644 -p %{SOURCE2} 
%{buildroot}%{_prefix}/lib/tmpfiles.d/%{name}.conf
rm -rf %{buildroot}%{_docdir}/%{name} \
  %{buildroot}%{_libdir}/perl5/ \
  %{buildroot}%{_libdir}/%{name}/*.a \
  %{buildroot}%{_libdir}/%{name}/*.la \
  %{buildroot}%{_libdir}/%{name}/plugins/*.la \
  %{buildroot}%{_datarootdir}/perl5/Apache/TS.pm \
  %{buildroot}%{_datarootdir}/perl5/Apache/TS.pm.in \
  %{buildroot}%{_datarootdir}/perl5/Apache/TS/AdminClient.pm \
  %{buildroot}%{_datarootdir}/perl5/Apache/TS/Config.pm \
  %{buildroot}%{_datarootdir}/perl5/Apache/TS/Config/Records.pm \
  %{buildroot}%{_bindir}/tspush \
  %{buildroot}%{_bindir}/traffic_shell \
  %{buildroot}%{_bindir}/traffic_sac \
  %{buildroot}%{_bindir}/trafficserver \
  %{buildroot}%{_bindir}/tstop
strip -s %{buildroot}%{_bindir}/traffic_cop \
  %{buildroot}%{_bindir}/traffic_line \
  %{buildroot}%{_bindir}/traffic_logcat \
  %{buildroot}%{_bindir}/traffic_logstats \
  %{buildroot}%{_bindir}/traffic_server \
  %{buildroot}%{_libdir}/%{name}/*.so* \
  %{buildroot}%{_libdir}/%{name}/plugins/*.so
mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d \
  %{buildroot}%{_sysconfdir}/%{name}/internal \
  %{buildroot}%{_sysconfdir}/%{name}/snapshots \
  %{buildroot}%{_sysconfdir}/%{name}/ssl \
  %{buildroot}%{_docdir}/%{name}/etc/body_factory/default
chmod 0770 %{buildroot}%{_sysconfdir}/%{name}/internal
chmod 0770 %{buildroot}%{_sysconfdir}/%{name}/snapshots
chmod 0750 %{buildroot}%{_sysconfdir}/%{name}/ssl
chmod 0750 %{buildroot}%{_sysconfdir}/%{name}/body_factory
echo "%{_libdir}/%{name}" > 
%{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
mv %{buildroot}%{_sysconfdir}/%{name}/body_factory/default/* 
%{buildroot}%{_docdir}/%{name}/etc/body_factory/default/
mv %{buildroot}%{_sysconfdir}/%{name}/*.config 
%{buildroot}%{_docdir}/%{name}/etc/

%post
%{_sbindir}/ldconfig
%{_bindir}/systemctl --system daemon-reload &> /dev/null
chown root:ats %{_sysconfdir}/%{name}/body_factory &> /dev/null
chown root:ats %{_sysconfdir}/%{name}/ssl &> /dev/null
chown ats:ats %{_sysconfdir}/%{name}/internal &> /dev/null
chown ats:ats %{_sysconfdir}/%{name}/snapshots &> /dev/null
exit 0

%pre
getent group ats &> /dev/null || groupadd -r ats -g 176 &> /dev/null
getent passwd ats &> /dev/null || useradd -r -u 176 -g ats -d / -s 
%{_sbindir}/nologin -c "Apache Traffic Server" ats &> /dev/null
exit 0

%files
%dir %{_libdir}/%{name}
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/*
%{_bindir}/traffic*
%{_libdir}/%{name}/*.so.*
%{_unitdir}/%{name}.service
%{_prefix}/lib/tmpfiles.d/%{name}.conf
%attr(0770, ats, ats) %dir %{_var}/log/%{name}
%attr(0770, ats, ats) %dir /run/%{name}
%attr(0770, ats, ats) %dir %{_var}/cache/%{name}
%attr(0644, root, root) %{_sysconfdir}/ld.so.conf.d/*

%files devel
%{_bindir}/tsxs
%dir %{_includedir}/trafficserver
%{_includedir}/trafficserver/*
%{_libdir}/%{name}/*.so
%{_libdir}/%{name}/pkgconfig/*.pc

%files manpages
%{_mandir}/man3/*
%{_docdir}/%{name}/*

%files plugins
%dir %{_libdir}/%{name}/plugins
%{_libdir}/%{name}/plugins/*.so

%changelog
* Tue Sep 15 2015 Reindl Harald <h....@thelounge.net>
- update to 5.3.2
- enable link-time-optimization

* Mon Jul 6 2015 Reindl Harald <h....@thelounge.net>
- update to 5.3.1


Am 27.01.2016 um 14:46 schrieb Muhammad Faisal:
> *Hello Reindl,*
> The ATS is installed using default directory structure we did not change
> anything. The other command traffic_ctl, traffic_logstats are working
> fine. Kindly see below and guide how to resolve this
>
> /usr/local/bin
> [root@wc01 bin]# ls
> traffic_cop       traffic_ctl     traffic_line    traffic_logstats
> traffic_sac    traffic_server  tspush
> traffic_crashlog  traffic_layout  traffic_logcat  traffic_manager
> trafficserver  traffic_via     tsxs
>
> On 1/27/2016 5:59 PM, Reindl Harald wrote:
>>
>> Am 27.01.2016 um 13:34 schrieb Muhammad Faisal:
>>> Thanks. Deployed mean installed in our lab with transparent bridging.
>>> the traffic_top giving the below error:
>>>
>>> Installation is done by compiling from sources so the install director
>>> is /usr/local/etc/trafficserver
>>
>> nonsense, the binaries don't belong to /usr/local/etc/
>> /usr/local has exactly the same hirachy as /usr
>> hence /usr/local/sbin:/usr/local/bin is normally in the PATH
>>
>> fix your installation or your PATH setting
>>
>>> /usr/bin/which: no traffic_top in
>>> (/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
>>>
>>> On 1/27/2016 5:28 PM, Reindl Harald wrote:
>>>>
>>>>
>>>> Am 27.01.2016 um 13:16 schrieb Muhammad Faisal:
>>>>> We have recently deployed ATS 5.3.x when running traffic_top
>>>>> command we
>>>>> get error "-bash: traffic_top: command not found"
>>>>
>>>> deployed how?
>>>>
>>>> [root@proxy:~]$ which traffic_top
>>>> /usr/bin/traffic_top
>>>> [root@proxy:~]$
>>>>
>>>> [root@proxy:~]$ rpm -q --file /usr/bin/traffic_top
>>>> trafficserver-5.3.2-2.fc22.20151012.rh.x86_64


Re: Traffic_top command not found

Posted by Muhammad Faisal <fa...@yahoo.com>.
*Hello Reindl,*
The ATS is installed using default directory structure we did not change 
anything. The other command traffic_ctl, traffic_logstats are working 
fine. Kindly see below and guide how to resolve this

/usr/local/bin
[root@wc01 bin]# ls
traffic_cop       traffic_ctl     traffic_line    traffic_logstats 
traffic_sac    traffic_server  tspush
traffic_crashlog  traffic_layout  traffic_logcat  traffic_manager 
trafficserver  traffic_via     tsxs

Thanks
F.

On 1/27/2016 5:59 PM, Reindl Harald wrote:
>
> Am 27.01.2016 um 13:34 schrieb Muhammad Faisal:
>> Thanks. Deployed mean installed in our lab with transparent bridging.
>> the traffic_top giving the below error:
>>
>> Installation is done by compiling from sources so the install director
>> is /usr/local/etc/trafficserver
>
> nonsense, the binaries don't belong to /usr/local/etc/
> /usr/local has exactly the same hirachy as /usr
> hence /usr/local/sbin:/usr/local/bin is normally in the PATH
>
> fix your installation or your PATH setting
>
>> /usr/bin/which: no traffic_top in
>> (/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin) 
>>
>>
>>
>> On 1/27/2016 5:28 PM, Reindl Harald wrote:
>>>
>>>
>>> Am 27.01.2016 um 13:16 schrieb Muhammad Faisal:
>>>> We have recently deployed ATS 5.3.x when running traffic_top 
>>>> command we
>>>> get error "-bash: traffic_top: command not found"
>>>
>>> deployed how?
>>>
>>> [root@proxy:~]$ which traffic_top
>>> /usr/bin/traffic_top
>>> [root@proxy:~]$
>>>
>>> [root@proxy:~]$ rpm -q --file /usr/bin/traffic_top
>>> trafficserver-5.3.2-2.fc22.20151012.rh.x86_64
>


Re: Traffic_top command not found

Posted by Reindl Harald <h....@thelounge.net>.
Am 27.01.2016 um 13:34 schrieb Muhammad Faisal:
> Thanks. Deployed mean installed in our lab with transparent bridging.
> the traffic_top giving the below error:
>
> Installation is done by compiling from sources so the install director
> is /usr/local/etc/trafficserver

nonsense, the binaries don't belong to /usr/local/etc/
/usr/local has exactly the same hirachy as /usr
hence /usr/local/sbin:/usr/local/bin is normally in the PATH

fix your installation or your PATH setting

> /usr/bin/which: no traffic_top in
> (/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
>
>
> On 1/27/2016 5:28 PM, Reindl Harald wrote:
>>
>>
>> Am 27.01.2016 um 13:16 schrieb Muhammad Faisal:
>>> We have recently deployed ATS 5.3.x when running traffic_top command we
>>> get error "-bash: traffic_top: command not found"
>>
>> deployed how?
>>
>> [root@proxy:~]$ which traffic_top
>> /usr/bin/traffic_top
>> [root@proxy:~]$
>>
>> [root@proxy:~]$ rpm -q --file /usr/bin/traffic_top
>> trafficserver-5.3.2-2.fc22.20151012.rh.x86_64


Re: Traffic_top command not found

Posted by Muhammad Faisal <fa...@yahoo.com>.
Hi,
Thanks. Deployed mean installed in our lab with transparent bridging. 
the traffic_top giving the below error:

Installation is done by compiling from sources so the install director 
is /usr/local/etc/trafficserver

/usr/bin/which: no traffic_top in 
(/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)

On 1/27/2016 5:28 PM, Reindl Harald wrote:
>
>
> Am 27.01.2016 um 13:16 schrieb Muhammad Faisal:
>> We have recently deployed ATS 5.3.x when running traffic_top command we
>> get error "-bash: traffic_top: command not found"
>
> deployed how?
>
> [root@proxy:~]$ which traffic_top
> /usr/bin/traffic_top
> [root@proxy:~]$
>
> [root@proxy:~]$ rpm -q --file /usr/bin/traffic_top
> trafficserver-5.3.2-2.fc22.20151012.rh.x86_64
>


Re: Traffic_top command not found

Posted by Reindl Harald <h....@thelounge.net>.

Am 27.01.2016 um 13:16 schrieb Muhammad Faisal:
> We have recently deployed ATS 5.3.x when running traffic_top command we
> get error "-bash: traffic_top: command not found"

deployed how?

[root@proxy:~]$ which traffic_top
/usr/bin/traffic_top
[root@proxy:~]$

[root@proxy:~]$ rpm -q --file /usr/bin/traffic_top
trafficserver-5.3.2-2.fc22.20151012.rh.x86_64