opensolaris

FreeBSD ZFS

匆匆过客 提交于 2021-01-13 16:03:35
FreeBSD ZFS https://www.cnblogs.com/hadex/p/6068476.html 参考資料 http://docs.oracle.com/cd/E37934_01/html/E36658/toc.html https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/zfs.html 内核支持 方式一:ZFS 静态編译进内核 # 确保内核启用如下三项支持 options ZFS #/usr/src/sys/amd64/conf/MyKernel options NFSD #krpc options UFS_ACL #acl 方式二:ZFS 做为模块开机加载 # 确保如下两个文件同时存在 # /boot/kernel/zfs.ko # /boot/kernel/opensolaris.ko # 必須的两个模块与内核同步編译 MODULES_OVERRIDE= zfs opensolaris krpc acl_posix1e #/etc/make.conf # 设置开机启动 zfs_enable="YES" #/etc/rc.conf.local # 确保 zfs 模块开机加载 zfs_load="YES" #/boot/loader.conf 特性 ZFS 不通过常规的操作系统工具进行管理,如

Compiling libmemcached in OpenSolaris/OpenIndiana

和自甴很熟 提交于 2019-12-25 01:38:49
问题 I wish to compile libmemcached into OpenIndiana OS. The configure process works perfectly with the following output configure: creating ./config.status config.status: creating libhashkit/hashkitcon.h config.status: creating libhashkit-1.0/configure.h config.status: creating libtest/version.h config.status: creating libtest/yatlcon.h config.status: creating Makefile config.status: creating docs/source/conf.py config.status: creating libmemcached-1.2/configure.h config.status: creating support

Using atomic operations in gcc 3.4.3

∥☆過路亽.° 提交于 2019-12-25 00:00:29
问题 The built in atomic operations were introduced in gcc-4.1.2. However, I am using gcc on OpenIndiana which only has gcc 3.4.3. Now my question is how to use atomic operations in gcc 3.4.3? Moreover I have tried to use gcc 4.6.1 in OpenIndiana but it doesnt work, as it complains about some runtime libraries. If anyone has successfully used it, kindly let me know. 回答1: I would suggest you to upgrade your GCC compiler. A GCC 3 is an ancient thing. If you cannot install a newer version of GCC, you

InetAddress.getLocalHost() throws UnknownHostException

孤者浪人 提交于 2019-12-17 02:11:07
问题 I am testing our server-application (written Java) on different operating systems and thought that OpenSolaris (2008.11) would be the least troublesome due to the nice Java integration. Turns out I was wrong, as I end up with a UnknownHostException try { computerName = InetAddress.getLocalHost().getHostName(); if (computerName.indexOf(".") > -1) computerName = computerName.substring(0, computerName.indexOf(".")).toUpperCase(); } catch (UnknownHostException e) { e.printStackTrace(); } The

Problem compiling gcc 4.4.0 on OpenSolaris 2009.6

我只是一个虾纸丫 提交于 2019-12-11 06:36:18
问题 I am attempting to compile gcc 4.4.0 on opensolaris 2009.6 Currently in the box (which is a AMD 64bit machine), I have the gcc 3.4.6 installed. I unpacked the gcc 4.4.0 tarball. I set the following env variables: export CXX=/usr/local/bin/g++ export CC=/usr/local/bin/gcc Then I ran "configure && make" and this is the error message that I got: checking for i386-pc-solaris2.11-gcc... /export/home/me/wd/gcc/gcc-4.4.0/host-i386-pc-solaris2.11/gcc/xgcc -B/export/home/me/wd/gcc/gcc-4.4.0/host-i386

Sun C++ Compilers and Boost

与世无争的帅哥 提交于 2019-12-07 23:29:21
问题 I am currently developing on OpenSolaris 2009-06. The Boost::MPL Documentation seems to suggest that sun compilers are not supported (the document was last updated in 2004 ). Boost's top level documentation seems to suggest that the sun compilers 5.10 onwards are supported -- I guess this is a general level of support or does this include MPL ?. Does anyone have any details on the state of the C++ conformance of the sun 5.10 compilers ? I could always compile using GCC. 回答1: I have had some

Sun C++ Compilers and Boost

蓝咒 提交于 2019-12-06 09:06:43
I am currently developing on OpenSolaris 2009-06. The Boost::MPL Documentation seems to suggest that sun compilers are not supported (the document was last updated in 2004 ). Boost's top level documentation seems to suggest that the sun compilers 5.10 onwards are supported -- I guess this is a general level of support or does this include MPL ?. Does anyone have any details on the state of the C++ conformance of the sun 5.10 compilers ? I could always compile using GCC. Chris Huang-Leaver I have had some success with Boost and Sun's CC compiler on Solaris 10, but it is a pain. The main thing

InetAddress.getLocalHost() throws UnknownHostException

China☆狼群 提交于 2019-11-26 12:04:26
I am testing our server-application (written Java) on different operating systems and thought that OpenSolaris (2008.11) would be the least troublesome due to the nice Java integration. Turns out I was wrong, as I end up with a UnknownHostException try { computerName = InetAddress.getLocalHost().getHostName(); if (computerName.indexOf(".") > -1) computerName = computerName.substring(0, computerName.indexOf(".")).toUpperCase(); } catch (UnknownHostException e) { e.printStackTrace(); } The output is: java.net.UnknownHostException: desvearth01: desvearth01 at java.net.InetAddress.getLocalHost