According to your requirement, you may need to install different versions of sphinx, take installing v1.7.0
as an example:
$ git clone https://github.com/sphinx-doc/sphinx.git
$ cd sphinx
$ git checkout tags/v1.7.0
$ sudo pip install .
According to your requirement, you may need to install different versions of sphinx, take installing v1.7.0
as an example:
$ git clone https://github.com/sphinx-doc/sphinx.git
$ cd sphinx
$ git checkout tags/v1.7.0
$ sudo pip install .
Today I tried to install homebrew
on my macOS Mojave
, and came across following errors:
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
......
Already up-to-date.
Error: Failed to link all completions, docs and manpages:
Permission denied @ rb_file_s_symlink - (../../../Homebrew/completions/zsh/_brew, /usr/local/share/zsh/site-functions/_brew)
Failed during: /usr/local/bin/brew update --force
After refering stackoverflow, I fixed it through following command:
$ sudo chown -R $(whoami) $(brew --prefix)/*
Claim: Since illumos
provides its own debugger: mdb
, I don’t want to convince anybody to use gdb
instead of mdb
. Compile and use gdb
is just my personal hobby.
I use OmniOS
, and I think this material should also apply to other illumos
OSs and even Solaris
:
(1) Download and extract gdb
source code (currently the newest versin is 8.3
);
(2) Enter the gdb
directory and do configuration:
# cd gdb-8.3
# mkdir build
# ../configure CC='gcc -m64' CXX='g++ -m64'
(3) Build it:
# gmake
After compiling, testing it:
# ./gdb-8.3/build/gdb/gdb --data-directory=./gdb-8.3/build/gdb/data-directory/ -q a.out
Reading symbols from a.out...
(gdb) start
Temporary breakpoint 1 at 0x4011b6: file test.c, line 4.
Starting program: /root/a.out
[Thread debugging using libthread_db enabled]
[New Thread 1 (LWP 1)]
[Switching to Thread 1 (LWP 1)]
Thread 2 hit Temporary breakpoint 1, main () at test.c:4
4 printf("%d\n", sizeof(long unsigned int));
(gdb) n
8
5 return 0;
(gdb)
6 }
(gdb)
So far so good!
To build illumos source code on OmniOS
, you need to update system and install related tools (Assume you run as root
) first:
# pkg update
# pkg install pkg:/developer/illumos-tools
Then clone illumos
source code and compile ():
# git clone https://github.com/illumos/illumos-gate.git
# cd illumos-gate
# time ksh93 usr/src/tools/scripts/nightly /opt/onbld/env/omnios-illumos-gate
That’s it!
References:
Building illumos;
Build error of illumos-gate on OmniOS.
Following document to install OmniOS is quite straightforward. I use r151030
version and pick Solaris 11
during selecting Operating Systems on VirtualBox
. To use root
login through SSH
, I need to do following changes:
(1) Set PermitRootLogin
‘s value to yes
in /etc/ssh/sshd_config
file;
(2) Restart SSH
service:
# svcadm restart ssh
A fresh OmniOS
is born:
Update:
When installing r151032
, I found selecing Oracle Solaris 10 10/09 and later (64-bit)
can work.
Reference:
Solaris : How to enable ssh login for root user after a fresh install.