A piggy bank of commands, fixes, succinct reviews, some mini articles and technical opinions from a (mostly) Perl developer.

Jump to

Quick reference

Showing posts with label install. Show all posts
Showing posts with label install. Show all posts

Install perl really fast

Fastest way to install perl:

perlbrew install -j 5 --notest perl-5.16.3

Only takes about 2 mins.

Thanks perlbrew.

Cannot install Java JDK: semicolon found in selected path

There's no semi colon in the install path. But you still get the error:

        semicolon found in selected path

Solution is to move the install .exe to c:\ and run it again.

Possibly with command line switches: /v"/L c:\install.log"

(Search results show that this same issue has existed for 11 years!)

How to install ruby, rake, rubygems

https://www.ruby-lang.org/en/documentation/installation/

For ruby, tried:
  • https://rvm.io/ - wouldn't work on my Suse setup
  • https://github.com/sstephenson/rbenv#readme - worked on Suse. Promising, I like.
    • https://github.com/sstephenson/ruby-build#readme - doesn't work


For rubygems, tried:
  • https://rubygems.org/pages/download - worked

For rake:

  • It comes with ruby


Now learn Ruby:
https://github.com/neo/ruby_koans


Can't install recent Perl: too few arguments to function ‘dbmclose’

When I tried to install perl 5.16.2 or perl 5.20.0:

wget http://www.cpan.org/src/5.0/perl-5.20.0.tar.gz
tar -xpvzf perl-5.20.0.tar.gz
cd perl-5.20.0
sh Configure -Dprefix='/opt' -de
make
...
make[1]: Entering directory `/opt/dweb/home/shepwil/src/perl-5.20.0/ext/ODBM_File'
cp ODBM_File.pm ../../lib/ODBM_File.pm
Running Mkbootstrap for ODBM_File ()
chmod 644 ODBM_File.bs
../../miniperl "-I../../lib" "-I../../lib" ../../lib/ExtUtils/xsubpp -noprototypes -typemap ../../lib/ExtUtils/typemap -typemap typemap  ODBM_File.xs > ODBM_File.xsc && mv ODBM_File.xsc ODBM_File.c
cc -c   -fwrapv -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2   -DVERSION=\"1.12\" -DXS_VERSION=\"1.12\" -fPIC "-I../.."   ODBM_File.c
ODBM_File.xs: In function ‘XS_ODBM_File_DESTROY’:
ODBM_File.xs:128: error: too few arguments to function ‘dbmclose’
make[1]: *** [ODBM_File.o] Error 1
make[1]: Leaving directory `/opt/dweb/home/shepwil/src/perl-5.20.0/ext/ODBM_File'
Unsuccessful make(ext/ODBM_File): code=512 at make_ext.pl line 561.
make: *** [lib/auto/ODBM_File/ODBM_File.so] Error 25

The solution:

sudo diff /usr/include/dbm.h.patched /usr/include/dbm.h
62c62,63
> extern int    dbmclose __P((DBM *));
---
< /* extern int dbmclose __P((DBM *));*/
< extern int    dbmclose __P((void));

sudo cp usr/include/dbm.h.patched /usr/include/dbm.h

(source)

Windows "add or remove programs" list is empty

First of all, just wait for a few minutes. The list may appear after some time.

If still no luck:
  • Highlight and copy the entire bolded text below: 
    • cmd /c REGEDIT /E "%userprofile%\desktop\uninstall.txt "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ 
  • Click on Start > Run and paste in the text you have just copied. Hit Enter. 
  • A notepad document should appear on your desktop called uninstall or uninstall.txt 
  • Open it to view the contents
    • Look for the "UninstallString" values and copy those into the Start > Run box to uninstall programs


Thanks to tomshardware.co.uk

Install ruby gems

sudo yum -y install gcc ruby-devel rubygems
sudo gem install nokogiri

Linux package managers

  • rpm
  • yum
  • apt-get
  • aptitude

Install programs on linux in a local directory

No need for root access.

$ ./configure --prefix=/home/user/mypackages
$ make
$ make install