Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solaris testing procedure #1

Open
zmughal opened this issue Aug 9, 2015 · 6 comments
Open

Solaris testing procedure #1

zmughal opened this issue Aug 9, 2015 · 6 comments
Assignees

Comments

@zmughal
Copy link
Member

zmughal commented Aug 9, 2015

Recording the steps taken for testing on Solaris:

Set up VM

# using a Vagrant box from <http://www.vagrantbox.es/>
vagrant  box add solaris-11.2 http://www.benden.us/vagrant/solaris-11.2.box
vagrant init solaris-11.2
vagrant up
vagrant ssh

Download SolarisStudio 12.3 from here. You will need to create an Oracle account.

Prepare PDL build

cd /vagrant
tar xvjf SolarisStudio12.3-solaris-x86-bin.tar.bz2
echo 'export PATH=/vagrant/SolarisStudio12.3-solaris-x86-bin/solarisstudio12.3/bin:$PATH;' >> ~/.bashrc
echo 'export MANPATH=/vagrant/SolarisStudio12.3-solaris-x86-bin/solarisstudio12.3/man:$MANPATH;' >> ~/.bashrc
. ~/.bashrc

sudo perl -MCPAN -eshell
> install App::cpanminus

echo 'export PATH=/usr/perl5/5.12/bin::$PATH;' >> ~/.bashrc
echo 'export MANPATH=/usr/perl5/5.12/man:$MANPATH;' >> ~/.bashrc
. ~/.bashrc


git clone https://github.com/PDLPorters/pdl.git
cd pdl

sudo cpanm Devel::CheckLib
sudo cpanm --installdeps .

\curl -L http://install.perlbrew.pl | bash
echo "source ~/perl5/perlbrew/etc/bashrc" >> ~/.bashrc
. ~/.bashrc
@zmughal
Copy link
Member Author

zmughal commented Aug 10, 2015

More useful information at:

http://unix.stackexchange.com/questions/72882/solaris-development-host
http://docs.oracle.com/cd/E24457_01/html/E21986/ossrn.html#scrolltoc
http://docs.oracle.com/cd/E23824_01/html/E21802/gihhp.html

And the install page of SolarisStudio (after the Oracle login)

rsync ~/Downloads/pkg.oracle.com.* ~/sw_projects/PDLPorters/devops/devops/os/solaris/

sudo pkg set-publisher \
    -k /vagrant/pkg.oracle.com.key.pem \
    -c /vagrant/pkg.oracle.com.certificate.pem \
    -G "*" -g https://pkg.oracle.com/solarisstudio/release solarisstudio
sudo pkg install solarisstudio-123

export MANPATH=/opt/solarisstudio12.3/man:$MANPATH;
export PATH=/opt/solarisstudio12.3/bin:$PATH;

@mohawk2
Copy link
Member

mohawk2 commented Aug 15, 2015

If I run all of this, will I have a working Solaris vm?

Next step would be to puppetise this or by other means be able to automatically run perl module installation/tests.

@zmughal
Copy link
Member Author

zmughal commented Aug 15, 2015

More or less. I need to clean it up some more. Or I could package up my VM. :-P

@mohawk2
Copy link
Member

mohawk2 commented Aug 15, 2015

The position I'd like to be in is with a process to take the vagrantbox.es image, and build it into a dev box for us. That will ensure we have a clean box. If we then package that as an even easier way in, that's a separate step.

@mohawk2
Copy link
Member

mohawk2 commented Jan 28, 2022

@mohawk2
Copy link
Member

mohawk2 commented Jan 28, 2022

Also available in FreeBSD! https://github.com/vmactions/freebsd-vm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants