I would like to install perl version 5.26.3 in host running with Solaris 11 using service account. The installation has to be done in Application file system or in user directory.
Please could someone share with the steps to install ?
Please note that perl 5.26 version is already installed at OS level , but we want to have our own perl installation in application folder rather than using OS level perl interpreter
Thanks.
Here is an example of installing from source using the defaults. If you want to modify the defaults, have a look at the INSTALL document.
$ wget https://www.cpan.org/src/5.0/perl-5.26.3.tar.bz2
$ bunzip2 perl-5.26.3.tar.bz2
$ tar xvf perl-5.26.3.tar
$ cd perl-5.26.3
$ sh Configure -de -Dprefix='/some/dir' # Where to install
$ make
$ make test
$ make install
Then edit the PATH environment variable to include /some/dir/bin such that the shell can find the new perl.
This question already has answers here:
How can I install packages using pip according to the requirements.txt file from a local directory?
(19 answers)
Closed 3 years ago.
when iam trying to install the requirements.txt file by using pip in command prompt iam getting an error like this
pip install -r requirements.txt
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
Navigate to path where requirement.txt is saved.
cd path (change to directory)
pip install -r requirements.txt
This question already has answers here:
How do I tell CPAN to install all dependencies?
(10 answers)
Closed 5 years ago.
I am trying to run build a Perl project. When I try perl Build.PL, I get an error:
Can't locate Module/Build.pm in #INC
I installed CPAN and tried cpan Module::Build. However when I do that I get an error: Can't locate Module/Metadata.pm in #INC
I tried installing metadata but tests are failing. Is there a way to install Build.pm and all its dependencies at one go
If you want to install a module with dependencies you need to set the following in cpan:
cpan> o conf prerequisites_policy 'follow'
cpan> o conf build_requires_install_policy yes
cpan> o conf commit
This question already has answers here:
How can I use a new Perl module without install permissions?
(11 answers)
Closed 7 years ago.
I program using Perl and need to install Unicode String. But make install tells me:
Files found in blib/arch: installing files in blib/lib into
architecture dependent library tree
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Can't create
'/Library/Perl/5.16/darwin-thread-multi-2level/Unicode' mkdir
/Library/Perl/5.16/darwin-thread-multi-2level/Unicode: Permission
denied at /System/Library/Perl/5.16/ExtUtils/Install.pm line 494.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
at -e line 1. make: *** [pure_site_install] Error 13
Does anyone ever encountered this problem?
/Library is a system directory. It is a bad idea to tinker with your system's own Perl distribution. If anything goes wrong, you'll have a lot of cleanup to do.
Therefore, build your own Perl. All you need is to download the appropriate source distribution, and run ./Configure --help, and read the instructions.
Or, you could just do:
$ ./Configure -des -Dprefix=/Users/user/perl/5.xx.x
make
make test
make install
You can then put /Users/user/perl/5.xx.x/bin on your path, or just invoke perl with the full path.
$ ~/perl/5.xx.x/bin/perl Makefile.PL
make test
make install
I like to put symlinks in ~/bin so that perl5.xx.x invokes ~/perl/5.xx.x/bin/perl.
Do not install modules in system directories. I am sure people who recommended that mean well, but doing so is going to cause trouble at some point.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I have installed sbt on Ubuntu.
:~/bin/sbt/bin$ ls
classes sbt sbt-launch.jar target
jansi.jar sbt.bat sbt-launch-lib.bash win-sbt
However, whenever I try to launch sbt (from the same directory where sbt is located) it does not work:
No command 'sbt' found, did you mean:
Command 'skt' from package 'latex-sanskrit' (universe)
Command 'sb2' from package 'scratchbox2' (universe)
Command 'sbd' from package 'cluster-glue' (main)
Command 'mbt' from package 'mbt' (universe)
Command 'sbmt' from package 'atfs' (universe)
Command 'lbt' from package 'lbt' (universe)
Command 'st' from package 'suckless-tools' (universe)
Command 'sb' from package 'lrzsz' (universe)
I am new to linux and I have no idea how to tackle this issue.
The simplest way of installing SBT on ubuntu is the deb package provided by Typesafe.
Run the following shell commands:
wget http://apt.typesafe.com/repo-deb-build-0002.deb
sudo dpkg -i repo-deb-build-0002.deb
sudo apt-get update
sudo apt-get install sbt
And you're done !
It seems like you installed a zip version of sbt, which is fine. But I suggest you install the native debian package if you are on Ubuntu. That is how I managed to install it on my Ubuntu 12.04. Check it out here:
http://www.scala-sbt.org/release/docs/Installing-sbt-on-Linux.html
Or simply directly download it from here.
No command sbt found
It's saying that sbt is not on your path. Try to run ./sbt from ~/bin/sbt/bin or wherever the sbt executable is to verify that it runs correctly. Also check that you have execute permissions on the sbt executable. If this works , then add ~/bin/sbt/bin to your path and sbt should run from anywhere.
See this question about adding a directory to your path.
To verify the path is set correctly use the which command on LINUX. The output will look something like this:
$ which sbt
/usr/bin/sbt
Lastly, to verify sbt is working try running sbt -help or likewise. The output with -help will look something like this:
$ sbt -help
Usage: sbt [options]
-h | -help print this message
...
As an alternative approach, you can save the SBT Extras script to a file called sbt.sh and set the permission to executable. Then add this file to your path, or just put it under your ~/bin directory.
The bonus here, is that it will download and use the correct version of SBT depending on your project properties. This is a nice convenience if you tend to compile open source projects that you pull from GitHub and other.
My guess is that the directory ~/bin/sbt/bin is not in your PATH.
To execute programs or scripts that are in the current directory you need to prefix the command with ./, as in:
./sbt
This is a security feature in linux, so to prevent overriding of system commands (and other programs) by a malicious party dropping a file in your home directory (for example). Imagine a script called 'ls' that emails your /etc/passwd file to 3rd party before executing the ls command... Or one that executes 'rm -rf .'...
That said, unless you need something specific from the latest source code, you're best off doing what paradigmatic said in his post, and install it from the Typesafe repository.