Difference between revisions of "Openproject"

From copec
Jump to: navigation, search
 
(4 intermediate revisions by the same user not shown)
Line 6: Line 6:
  
 
<pre>
 
<pre>
pfexec pkgin in git curl build-essential zlib libyaml openssl mysql-client postgresql96-client sqlite3 readline libffi
 
 
 
[copec@openproject1 ~]$ pfexec pkgin in git curl build-essential zlib libyaml openssl mysql-client postgresql96-client sqlite3 readline libffi
 
[copec@openproject1 ~]$ pfexec pkgin in git curl build-essential zlib libyaml openssl mysql-client postgresql96-client sqlite3 readline libffi
 
calculating dependencies... done.
 
calculating dependencies... done.
Line 44: Line 42:
 
marking readline-7.0 as non auto-removable
 
marking readline-7.0 as non auto-removable
 
marking libffi-3.2.1nb4 as non auto-removable
 
marking libffi-3.2.1nb4 as non auto-removable
 +
</pre>
  
 +
<pre>
 
[copec@openproject1 ~]$ git clone https://github.com/rbenv/rbenv.git ~/.rbenv
 
[copec@openproject1 ~]$ git clone https://github.com/rbenv/rbenv.git ~/.rbenv
 
Cloning into '/home/copec/.rbenv'...
 
Cloning into '/home/copec/.rbenv'...
Line 51: Line 51:
 
Receiving objects: 100% (2744/2744), 515.63 KiB | 2.43 MiB/s, done.
 
Receiving objects: 100% (2744/2744), 515.63 KiB | 2.43 MiB/s, done.
 
Resolving deltas: 100% (1720/1720), done.
 
Resolving deltas: 100% (1720/1720), done.
 +
</pre>
  
 +
<pre>
 
[copec@openproject1 ~]$ cd ~/.rbenv && src/configure && make -C src
 
[copec@openproject1 ~]$ cd ~/.rbenv && src/configure && make -C src
 
make: Entering directory '/home/copec/.rbenv/src'
 
make: Entering directory '/home/copec/.rbenv/src'
Line 57: Line 59:
 
gcc -shared -Wl,-soname,../libexec/rbenv-realpath.dylib  -o ../libexec/rbenv-realpath.dylib realpath.o  
 
gcc -shared -Wl,-soname,../libexec/rbenv-realpath.dylib  -o ../libexec/rbenv-realpath.dylib realpath.o  
 
make: Leaving directory '/home/copec/.rbenv/src'
 
make: Leaving directory '/home/copec/.rbenv/src'
 +
</pre>
  
 +
<pre>
 
[copec@openproject1 ~/.rbenv]$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
 
[copec@openproject1 ~/.rbenv]$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
 +
</pre>
  
 +
<pre>
 
[copec@openproject1 ~]$ ~/.rbenv/bin/rbenv init
 
[copec@openproject1 ~]$ ~/.rbenv/bin/rbenv init
 
# Load rbenv automatically by appending
 
# Load rbenv automatically by appending
Line 66: Line 72:
 
eval "$(rbenv init -)"
 
eval "$(rbenv init -)"
  
 +
[copec@openproject1 ~]$ echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
 +
 +
</pre>
 +
 +
<pre>
 +
[copec@openproject1 ~]$ source ~/.bash_profile
 +
</pre>
 +
 +
<pre>
 +
[copec@openproject1 ~]$ git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
 +
Cloning into '/home/copec/.rbenv/plugins/ruby-build'...
 +
remote: Enumerating objects: 2, done.
 +
remote: Counting objects: 100% (2/2), done.
 +
remote: Compressing objects: 100% (2/2), done.
 +
remote: Total 9231 (delta 0), reused 0 (delta 0), pack-reused 9229
 +
Receiving objects: 100% (9231/9231), 1.93 MiB | 5.07 MiB/s, done.
 +
Resolving deltas: 100% (5987/5987), done.
 +
</pre>
 +
 +
<pre>
 +
[copec@openproject1 ~]$ rbenv install --list
 +
Available versions:
 +
/usr/bin/grep: illegal option -- F
 +
Usage: grep [-c|-l|-q] [-r|-R] -hHbnsviw pattern file . . .
 +
 +
[copec@openproject1 ~]$ pfexec pkgin in grep
 +
calculating dependencies... done.
 +
 +
nothing to upgrade.
 +
1 packages to be installed (310K to download, 909K to install):
 +
 +
grep-3.1
 +
 +
proceed ? [Y/n]
 +
downloading packages...
 +
grep-3.1.tgz                                                                                                                                                    100%  310KB 310.0KB/s 310.0KB/s  00:00   
 +
installing packages...
 +
installing grep-3.1...
 +
grep-3.1: registering info file /opt/local/info/grep.info
 +
pkg_install warnings: 0, errors: 0
 +
reading local summary...
 +
processing local summary...
 +
marking grep-3.1 as non auto-removable
 +
 +
[copec@openproject1 ~]$ hash -r
 +
 +
[copec@openproject1 ~]$ rbenv install --list                                                                                                                                                               
 +
Available versions:
 +
...
 +
 +
</pre>
 +
 +
<pre>
 +
[copec@openproject1 ~]$ rbenv install 2.5.1
 +
Downloading ruby-2.5.1.tar.bz2...
 +
-> https://cache.ruby-lang.org/pub/ruby/2.5/ruby-2.5.1.tar.bz2
 +
Installing ruby-2.5.1...
 +
Installed ruby-2.5.1 to /home/copec/.rbenv/versions/2.5.1
 +
 +
</pre>
 +
 +
<pre>
 +
[copec@openproject1 ~]$ rbenv global 2.5.1
  
 
</pre>
 
</pre>

Latest revision as of 15:29, 26 September 2018

SmartOS Zone Install Notes

Translating from: https://www.openproject.org/development/setting-up-development-environment/

to

[copec@openproject1 ~]$ pfexec pkgin in git curl build-essential zlib libyaml openssl mysql-client postgresql96-client sqlite3 readline libffi
calculating dependencies... done.

nothing to upgrade.
6 packages to be installed (60M to download, 201M to install):

icu-60.2 lz4-1.8.0 libevent-2.1.8nb1 boost-libs-1.65.1nb3 mysql-client-5.7.20 postgresql96-client-9.6.9

proceed ? [Y/n] 
downloading packages...
icu-60.2.tgz                                                                                                                                                     100%   27MB   3.4MB/s  34.6KB/s   00:08    
lz4-1.8.0.tgz                                                                                                                                                    100%  265KB 264.7KB/s 264.7KB/s   00:00    
libevent-2.1.8nb1.tgz                                                                                                                                            100%  894KB 894.1KB/s 894.1KB/s   00:01    
boost-libs-1.65.1nb3.tgz                                                                                                                                         100%   10MB   2.6MB/s   1.3MB/s   00:04    
mysql-client-5.7.20.tgz                                                                                                                                          100%   17MB   2.2MB/s   2.3MB/s   00:08    
postgresql96-client-9.6.9.tgz                                                                                                                                    100% 4293KB   4.2MB/s   4.2MB/s   00:00    
installing packages...
installing icu-60.2...
installing lz4-1.8.0...
installing libevent-2.1.8nb1...
installing boost-libs-1.65.1nb3...
installing mysql-client-5.7.20...
installing postgresql96-client-9.6.9...
postgresql96-client-9.6.9: copying /opt/local/share/postgresql/pg_service.conf.sample to /opt/local/etc/postgresql/pg_service.conf
postgresql96-client-9.6.9: copying /opt/local/share/postgresql/psqlrc.sample to /opt/local/etc/postgresql/psqlrc
pkg_install warnings: 0, errors: 0
reading local summary...
processing local summary...
marking curl-7.60.0 as non auto-removable
marking zlib-1.2.11 as non auto-removable
marking libyaml-0.1.7 as non auto-removable
marking mysql-client-5.7.20 as non auto-removable
marking postgresql96-client-9.6.9 as non auto-removable
marking sqlite3-3.21.0nb1 as non auto-removable
marking readline-7.0 as non auto-removable
marking libffi-3.2.1nb4 as non auto-removable
[copec@openproject1 ~]$ git clone https://github.com/rbenv/rbenv.git ~/.rbenv
Cloning into '/home/copec/.rbenv'...
remote: Enumerating objects: 2744, done.
remote: Total 2744 (delta 0), reused 0 (delta 0), pack-reused 2744
Receiving objects: 100% (2744/2744), 515.63 KiB | 2.43 MiB/s, done.
Resolving deltas: 100% (1720/1720), done.
[copec@openproject1 ~]$ cd ~/.rbenv && src/configure && make -C src
make: Entering directory '/home/copec/.rbenv/src'
gcc -fPIC     -c -o realpath.o realpath.c
gcc -shared -Wl,-soname,../libexec/rbenv-realpath.dylib  -o ../libexec/rbenv-realpath.dylib realpath.o 
make: Leaving directory '/home/copec/.rbenv/src'
[copec@openproject1 ~/.rbenv]$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
[copec@openproject1 ~]$ ~/.rbenv/bin/rbenv init
# Load rbenv automatically by appending
# the following to ~/.bash_profile:

eval "$(rbenv init -)"

[copec@openproject1 ~]$ echo 'eval "$(rbenv init -)"' >> ~/.bash_profile

[copec@openproject1 ~]$ source ~/.bash_profile
[copec@openproject1 ~]$ git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
Cloning into '/home/copec/.rbenv/plugins/ruby-build'...
remote: Enumerating objects: 2, done.
remote: Counting objects: 100% (2/2), done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 9231 (delta 0), reused 0 (delta 0), pack-reused 9229
Receiving objects: 100% (9231/9231), 1.93 MiB | 5.07 MiB/s, done.
Resolving deltas: 100% (5987/5987), done.
[copec@openproject1 ~]$ rbenv install --list
Available versions:
/usr/bin/grep: illegal option -- F
Usage: grep [-c|-l|-q] [-r|-R] -hHbnsviw pattern file . . .

[copec@openproject1 ~]$ pfexec pkgin in grep
calculating dependencies... done.

nothing to upgrade.
1 packages to be installed (310K to download, 909K to install):

grep-3.1

proceed ? [Y/n] 
downloading packages...
grep-3.1.tgz                                                                                                                                                     100%  310KB 310.0KB/s 310.0KB/s   00:00    
installing packages...
installing grep-3.1...
grep-3.1: registering info file /opt/local/info/grep.info
pkg_install warnings: 0, errors: 0
reading local summary...
processing local summary...
marking grep-3.1 as non auto-removable

[copec@openproject1 ~]$ hash -r

[copec@openproject1 ~]$ rbenv install --list                                                                                                                                                                 
Available versions:
...

[copec@openproject1 ~]$ rbenv install 2.5.1
Downloading ruby-2.5.1.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.5/ruby-2.5.1.tar.bz2
Installing ruby-2.5.1...
Installed ruby-2.5.1 to /home/copec/.rbenv/versions/2.5.1

[copec@openproject1 ~]$ rbenv global 2.5.1