Sponsored Content
Operating Systems OS X (Apple) Installing Dash Shell on OS X Lion Post 302989612 by wisecracker on Monday 16th of January 2017 07:48:55 AM
Old 01-16-2017
Installs to OSX Sierra, Version 10.12.2, mighty fine too, even with its many security locks.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

double-dash options

I need to create a file that accepts arguments and options, and the options have to allow for single-dash options (-abc) and double-dash options (--help). What is the best way to do this? Getopt(s) is great for single-dash, but chokes on double-dash. Do I really need to save the arguments to a... (1 Reply)
Discussion started by: dhinge
1 Replies

2. UNIX for Dummies Questions & Answers

dash after ampersant

Hi! I'm new in these forums and more or less new with Unix. So... here is the question: does anyone know where is redirected the output of a command when you put >&- after it? Does it means any standard file descriptor? Thanks! (2 Replies)
Discussion started by: csecnarf
2 Replies

3. UNIX for Dummies Questions & Answers

ignoring a dash in file name

so i have a simple file called -x and i need it renamed to x now i dont understand why when using the most basic methods, only the code mv ./-x x changes the file name while using any other type of escape characters around the dash, such as single/double quotations or backslash, doesnt. ... (5 Replies)
Discussion started by: LumpSum
5 Replies

4. Shell Programming and Scripting

remove dash

hi I am using ksh #A="abc-def" #typeset -u B="$A" #echo $B ABC-DEF how to remove the dash? i.e. ABCDEF? thank you (1 Reply)
Discussion started by: melanie_pfefer
1 Replies

5. BSD

Default I need help installing a Shell CenteriM

Hello, first of all, my name is Christian and I hope you are very welcome. Well, my problem is that I would install the instant messaging client CenterIM in my shell, but it commands me or anything. Your operating system is FreeBSD. Thanks. (0 Replies)
Discussion started by: LzbeL
0 Replies

6. OS X (Apple)

Video Contact Sheet on Lion from movies downloaded youtube MP4

Hi I am running Lion with latest patches > uname -a Darwin wger.local 11.2.0 Darwin Kernel Version 11.2.0: Tue Aug 9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64 x86_64 Installed mplayer, ffmpeg, gnu-getopt and ImageMagick through brew. I am unable to generate Video Contact... (0 Replies)
Discussion started by: slashdotweenie
0 Replies

7. OS X (Apple)

Upgrade to Lion (Version 10.7.3) for MacBook Air

Anyone running Lion on their Mac? I'm currently running Snow Leopard (v. 10.6.8) and have been hesitant to upgrade to 10.7.X. Anyone at all running Lion? Any experiences good or bad to report? Thanks! (7 Replies)
Discussion started by: Neo
7 Replies

8. Shell Programming and Scripting

Exclude dash in grep

Hi, I must be overlooking something, but I don't understand why this doesn't work. I'm trying to grep on a date, excluding all the lines starting with a dash: testfile: #2013-12-31 2013-12-31code: grep '^2013-12-31' testfileI'm expecting to see just the second line '2013-12-31' but I don't... (3 Replies)
Discussion started by: Subbeh
3 Replies

9. Shell Programming and Scripting

A dash to GOTO or a dash from GOTO, that is the question...

Well, guys I saw a question about GOTO for Python. So this gave me the inspiration to attempt a GOTO function for 'dash', (bash and ksh too). Machine: MBP OSX 10.14.3, default bash terminal, calling '#!/usr/local/bin/dash'... This is purely a fun project to see if it is possible in PURE... (3 Replies)
Discussion started by: wisecracker
3 Replies

10. OS X (Apple)

Generate a random number in a fully POSIX compliant shell, 'dash'...

Hi all... Apologies for any typos, etc... This took a while but it didn't beat me... Although there are many methods of generating random numbers in a POSIX shell this uses integer maths and a simple C source to create an executable to get epoch to microseconds accuracy if it is needed. I take... (8 Replies)
Discussion started by: wisecracker
8 Replies
Perlbal::Manual::Install(3pm)				User Contributed Perl Documentation			     Perlbal::Manual::Install(3pm)

NAME
Perlbal::Manual::Install - Steps, dependencies and requirements to install Perlbal VERSION Perlbal 1.78. DESCRIPTION How to install Perlbal. Installing Perlbal for the impatient $ perl -MCPAN -e shell cpan> install Perlbal App::cpanminus is also good at quickly installing Perlbal and all of its dependencies $ cpanm Perlbal IO::AIO Perlbal::XS::HTTPHeaders ... will give you an ideal Perlbal environment. Installing Perlbal (with a little more detail) You need to have perl on the machine. If you don't have it yet, you can grab it from http://www.perl.org/. Having perl on the machine should give you access to the CPAN shell, one of several possible ways to install and upgrade Perl modules. Start your CPAN shell: $ perl -MCPAN -e shell And now tell it to install Perlbal: cpan> install Perlbal In the end you should see a message stating "make install -- OK" (if that's not the case, please refer to section Troubleshooting later in this document). Installing Perlbal by hand (without using the CPAN shell) Head to <http://search.cpan.org/dist/Perlbal/> and find the download link. Download the file and untar it: $ tar zxvf Perlbal-X.XX.tar.gz Note that X.XX stands for the version number. Replace that with the latest version you got. Now you need to create the Makefile and run it; we're also going to run the tests before installing Perlbal: $ cd Perlbal-X.XX.tar.gz $ perl Makefile.PL $ make $ make test $ sudo make install Installing the latest development version You can clone Perlbal's repository from github and install it by hand by following the next steps: $ git clone http://github.com/perlbal/Perlbal.git $ cd Perlbal $ perl Makefile.PL $ make $ make test $ sudo make install Optional Dependencies and Asynchronous IO It is very highly recommended that Perlbal::XS::HTTPHeaders is installed and enabled. If you have poor performance, the first thing to do is install Perlbal::XS::HTTPHeaders. $ perl -MCPAN -e shell cpan> install Perlbal::XS::HTTPHeaders Enable it in your configuration: XS enable headers Perlbal checks for IO::AIO availability and uses it to perform asynchronous IO operations. If you're performing disk operations (e.g., using Perlbal as a web server), having IO::AIO will improve your response times. The only thing required in order to benefit from this feature is to install IO::AIO: $ perl -MCPAN -e shell cpan> install IO::AIO If you don't have IO::AIO installed a warning message will be displayed when you start perlbal: WARNING: AIO mode disabled or not available. Perlbal will run slowly under load if you're doing any disk operations. (e.g. web_server mode). Install IO::AIO for better performance. Checking that Perlbal is successfully installed Perlbal is shipped with some sample configuration files that reside in the conf directory (of the source). You can give Perlbal a try by heading to the directory where the source is and using the following command: $ sudo perlbal -c conf/webserver.conf By pointing your browser at "localhost:80" you should now see Perlbal responding (showing you the contents of "/usr/share/doc"). Note that the webserver.conf file sets up a Perlbal web server that listens on port 80. If you already have something listening on port 80 you need to either stop that service or change the port number on webserver.conf. Also note that if your machine doesn't have a "/usr/share/docs" directory you'll see an "ERROR: Directory not found for service docs" error message. Change the directory in the configuration file to something that exists. Troubleshooting Prerequisites not found If you're installing Perlbal by hand you may encounter some error messages describing how some prerequisites are not available: user@machine:~/Perlbal-X.XX$ perl Makefile.PL Checking if your kit is complete... Looks good Warning: prerequisite BSD::Resource 0 not found. Warning: prerequisite Danga::Socket 1.44 not found. Warning: prerequisite HTTP::Date 0 not found. Warning: prerequisite HTTP::Response 0 not found. Warning: prerequisite Sys::Syscall 0 not found. Writing Makefile for Perlbal This is perl's way of telling you that since you're installing Perlbal by hand you'll also need to install its prerequisites by hand. Your first choice is to download each of them separately and perform the same installation procedure for each. Unfortunately, they are all likely to have additional prerequisites. Recursively. Alternately, see the following Troubleshooting item: "No connection to the internet". No connection to the internet If you don't have a connection to the internet you can still install Perlbal, but you'll have to tranfer the source somehow to the machine. Given that Perlbal has other module dependencies from CPAN (and those have their own dependencies too), here's a solution for this problem: Step 1: On a machine with connection to the internet, install CPAN::Mini: $ perl -MCPAN -e shell cpan> install CPAN::Mini Run "minicpan" to create a minimal CPAN mirror (it contains only the latest version of each module): $ minicpan -l /home/user/minicpan/ -r http://cpan.org/ Now grab that directory and record it to something you can read on the other machine (e.g., a DVD, a hard drive). Once you're on that machine, you can run the CPAN shell and tell it to look for distributions on the local directory where you now have your own CPAN mirror: $ perl -MCPAN -e shell cpan> o conf urllist push file:///home/user/path/to/minicpan cpan> install Perlbal If you want "cpan" to record this change don't forget to commit: cpan> o conf commit No compiler available If there's no compiler available on the machine you will probably see an error ending in something like: Failed during this command: DORMANDO/Perlbal-X.XX.tar.gz : writemakefile NO '/usr/bin/perl Makefile.PL INSTALLDIRS=site' returned status -1 You need to install something like "gcc" (check <http://gcc.gnu.org/>). After installing "gcc", when trying to install Perlbal again you may get another error message: cpan> install Perlbal Running install for module 'Perlbal' Running make for D/DO/DORMANDO/Perlbal-X.XX.tar.gz Has already been unwrapped into directory /home/myself/.cpan/build/Perlbal-X.XX-GFko0J '/usr/bin/perl Makefile.PL INSTALLDIRS=site' returned status -1, won't make Running make test Make had some problems, won't test Running make install Make had some problems, won't install This is the cpan shell assuming nothing changed in the system and skipping a few steps. You need to let it know you're willing to forget the past: cpan> look Perlbal $ rm -rf * $ exit And now you can try installation again: cpan> install Perlbal SEE ALSO Perlbal::Manual. perl v5.14.2 2012-03-23 Perlbal::Manual::Install(3pm)
All times are GMT -4. The time now is 02:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy