WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Installing Apache breakes App Browser "ab" on command line  (Read 4854 times)

Offline mrstarr

  • Newbie
  • *
  • Posts: 20
Installing apache.tcz, installs something caleld "Apache Bench" as "ab" which
overrides the link to Appbrowser "ab", and so you won't be able to install anything
from the command line (like in microcore) by typing "ab" and pull out your hair wondering why..


THE CLUE IS:
$ ab -V
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/


THE FIX (rename apache bench to some other name, say abb):
add a renaming of the file by putting a directive in  /opt/bootlocal.sh and then save /opt/bootlocal.sh permanently with   filetool.sh -b


$ vi /opt/bootlocal.sh
press i (for insert mode inside vi, then type below:)

sudo  mv /usr/local/bin/ab /usr/local/bin/abb


press ESC (to exit insert mode from within vi)
press ZZ (to save and quit from within vi)


Now save bootlocal.sh permanently
$ filetool.sh -b





« Last Edit: May 27, 2012, 10:58:26 PM by mrstarr »

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Installing Apache breakes App Browser "ab" on command line
« Reply #1 on: May 27, 2012, 10:15:12 PM »
You can use /usr/bin/ab to always get to the command line ab tool.
Or you can setup an alias in your .ashrc
« Last Edit: May 27, 2012, 10:21:43 PM by roberts »
10+ Years Contributing to Linux Open Source Projects.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: Installing Apache breakes App Browser "ab" on command line
« Reply #2 on: May 28, 2012, 01:38:40 AM »
Hi mrstarr
From the apache info file:
Quote
      WARNING: apache2 includes a binary at
         /usr/local/bin/ab. This binary will
         override the ab command in TC unless it is
         used explicitly.