solaris

Python 2.5.2 and Solaris 8 (gcc 3.4.2) build issues

ⅰ亾dé卋堺 提交于 2019-12-12 15:16:26
问题 I'm trying to build python 2.5.2 on Solaris 8 using gcc 3.4.2. I can't see any immediate errors in the ./configure step but, once built and i enter the python shell doing an import time errors with : Python 2.5.2 (r252:60911, Nov 21 2008, 18:45:42) [GCC 3.4.2] on sunos5 Type "help", "copyright", "credits" or "license" for more information. >>> import time Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named time What am i doing wrong? From what i

Oracle Solaris Cluster 4.4 Quorum故障处理

柔情痞子 提交于 2019-12-12 15:02:39
朋友新建的一套osc 4.4环境,安装配置完成后,执行cluster status命令时,会夯住,如下图所示: 查看系统日志,发现如下报错: Dec 2 09:31:10 sol04 genunix: [ID 108990 kern.notice] NOTICE: CMM: Cluster members: sol03 sol04. Dec 2 09:31:10 sol04 genunix: [ID 279084 kern.notice] NOTICE: CMM: node reconfiguration #4 completed. Dec 2 09:31:16 sol04 genunix: [ID 670799 kern.warning] WARNING: CMM: Registering reservation key on quorum device /dev/did/rdsk/d5s2 failed with error 2. Dec 2 09:31:16 sol04 genunix: [ID 868277 kern.warning] WARNING: CMM: Erstwhile online quorum device /dev/did/rdsk/d5s2 (qid 1) is inaccessible now. 从日志中判断,跟quorum相关

What's the difference of the command output after inputting the command “env”, “export”, “set” under Bash Shell in Solaris?

混江龙づ霸主 提交于 2019-12-12 13:26:38
问题 OS: Solaris Shell: Bash Shell Scenario: Input the commands separately: "env", "export" and "set" (without any arguments) and there will be a list of variables and values returned. My question: What's the difference among the returned values after inputting the three commands? 回答1: The env and export commands yield the same information, but not in the same format. And bash 's export produces a very radically different output from the output of ksh or (Bourne) shell's version. Note that set and

Enable History Logging In TCSH Shell

偶尔善良 提交于 2019-12-12 12:39:36
问题 How can I enable logging of all the commands entered in the tcsh shell? I've tried: Setting the $history variable to 100. The $savehist to 99. Set the $histfile to $home/.history Typing commands into the shell doesn't save the commands in the history file. 回答1: In my .tcshrc: set history=2000 set savehist=(2000 merge) 来源: https://stackoverflow.com/questions/3573095/enable-history-logging-in-tcsh-shell

Ansible: How to globally set PATH for solaris

心不动则不痛 提交于 2019-12-12 08:58:22
问题 I am writing Ansible playbooks to setup and install our applications on Solaris servers. The problem is that the (bash) scripts which I need to execute all assume that a certain directory lies on the PATH, namely /data/bin - which would normally not be a problem were it not for Ansible ignoring all the .profile and .bashrc config. Now, I know that you can specify the environment for shell tasks via the environment flag, for example like this: - shell: printenv environment: PATH: /usr/bin:/usr

Convert date String to number on Solaris shell script gives No such file or directory

人盡茶涼 提交于 2019-12-12 04:40:09
问题 I have a date in the format "Thu Sep 22 3:50 2016", and I want to convert it to format: "2016-09-22" I tried the following shell script, which works fine for 'date', but gives error for user specified string: (I am working on Solaris platform). Any inputs will be helpful. Input: #!/usr/bin/sh mydate="Thu Sep 22 3:50 2016" echo `date +"%Y-%m-%d"` echo `$mydate +"%Y-%m-%d"` Output ./testShell.sh **2016-09-22** ./testShell.sh[6]: Thu: not found **[No such file or directory]** Any pointers please

How to capture expect output using spawn and sftp under solaris

走远了吗. 提交于 2019-12-12 04:35:59
问题 I am using expect to spawn a sftp session as follows: (lots of code snipped for clarity, and yes I understand the risks...) #!/opt/csw/bin/expect -f <snip> spawn sftp $user@$host set rez [connect $passw] if { $rez == 0 } { send "cd $location\r" set timeout -1 send "ls -l\r" send "quit\r" expect eof exit 0 } puts "\nError connecting to server: $host, user: $user and password: $passw!\n" exit 1 This works just fine. My specific question is how to I capture the results of the send "ls -l\r"

Solaris 11 / Illumos / OmniOS: Which package has /usr/include/sys/types.h?

∥☆過路亽.° 提交于 2019-12-12 04:32:28
问题 The Ubuntu equivalent would be libc6-dev , but I can't seem to find it for Solaris? How can I get types.h and related files for building packages on Solaris or Illumos? 回答1: You need the system/header package. I found this via http://pkg.oracle.com/solaris/release/en/search.shtml?token=types.h&action=Search 回答2: Assuming you use IPS 'pkg search 'types.h'' The Oracle Solaris 11 Cheat Sheet for Image Packaging System could be useful, too. 来源: https://stackoverflow.com/questions/41841143/trouble

Solaris Studio adding current directory info in object file

旧时模样 提交于 2019-12-12 03:26:25
问题 I am trying to build a simple hello world program using Solaris Studio 12.x on Solaris 11. If I compile the same file from two different folder, I am getting a difference in the object file as shown by diff command or cmp command. Took a hex dump of both object files (od -x) and compared them and using an online tool that can convert hex to ASCII, found that the difference is occurring as the object files contain the current directory from where the compilation was initiated. Question is how

Running SonarQube on Solaris using Jsvc

北城余情 提交于 2019-12-12 03:25:41
问题 The SonarQube 5.0 documentation states that in order to install SonarQube on AIX, HPUX or Solaris, one must install Java Service Wrapper, which is licensed software. Is it possible to do this using some free/open source alternative? There's a Jsvc library by Apache that is used to accomplish the same functionality. I wonder if anyone has successfully managed to use it. 回答1: We haven't documented it yet, but with SonarQube 5.0+, you can start SonarQube using a simple Java process. Just open a