solaris

Does libtool strip all options with -M?

耗尽温柔 提交于 2019-12-11 17:13:09
问题 I'm trying to track down a failure to link with a mapfile on Solaris. The missing mapfile causes the following error when I try to run our self tests: $ ./cryptestcwd v ld.so.1: cryptestcwd: fatal: /export/home/cryptopp/.libs/libcryptopp.so.6: hardware capability (CA_SUNW_HW_1) unsupported: 0x4800000 [ AES SSE4.1 ] Killed I've gotten as far as this Automake rule. libcryptopp_la_LINK , which I believe is the shared object, is missing AM_LDFLAGS . AM_LDFLAGS holds the -M cryptopp.mapfile option

Using csplit to divide a large file in smaller files with a determinated name

蓝咒 提交于 2019-12-11 16:46:19
问题 Having a very large plaint text file, with about 40 million lines, each line with the same length and format, we want to split it, line by line in N files using csplit . For example, if N is 80, the name of the generated files should be: FILE00000001.txt FILE00000002.txt … FILE00000080.txt Note that FILE1.txt, FILE2.txt … FILE80.txt is not valid for us. Thanks! 回答1: The parameter I was looking for is '-n 8'. Next example splits BIG_FILE.txt into 18 files of 5000 lines each of them: csplit -f

Node.JS on Solaris: Increase TCP's Initial Congestion Window to 10 segments (tcp slow-start)

删除回忆录丶 提交于 2019-12-11 13:59:22
问题 How can the Initial Congestion Window be increased to 10? I read a suggestion that it can be done with TCP_INIT_CWND, but I don't know how to do that. I originally posted this to ServerFault because it seems appropriate, but Iain on ServerFault suggested that it may a setting available to the application and that I may get a better answer here. 来源: https://stackoverflow.com/questions/5248559/node-js-on-solaris-increase-tcps-initial-congestion-window-to-10-segments-tcp

SOLARIS 10 Date Arithmetic

余生长醉 提交于 2019-12-11 13:26:10
问题 I am using X86 SOLARIS 10 and need the following bash script to get yesterday's date. #!/usr/local/bin/bash #ds=`date '+%Y%m%d' -d "+2 days"` ds=`GMT+24 date +%Y%m%d` #ds=`date --date yesterday +%Y%m%d` echo $ds Getting an error "GMT+24: command not found". Also, tried the methods that are commented without success. Any suggestion 回答1: You can't do much date arithmetic with Solaris's own date command. As others have pointed out you'll need GNU date . See this link, which includes information

protobuf generated files does not compile on Solaris SPARC 64

雨燕双飞 提交于 2019-12-11 13:10:18
问题 I am trying to compile some generated proto.cc files on Solaris 10 SPARC 64. And I get these errors: "/apps/pkgs/studio-11.0.13/prod/include/CC/stlport4/stl/_alloc.h", line 134: Error: The function "__stl_new" must have a prototype. "/apps/pkgs/studio-11.0.13/prod/include/CC/stlport4/stl/_alloc.h", line 135: Error: The function "__stl_delete" must have a prototype. "/apps/pkgs/studio-11.0.13/prod/include/CC/stlport4/./stdexcept", line 52: Error: _STLP_EXCEPTION_BASE is not defined. Compiler

How does LSOF map port to process on Solaris?

◇◆丶佛笑我妖孽 提交于 2019-12-11 12:40:14
问题 I have an idea of how it's done on Linux, they probably go through /proc//fd and to display the sockets used by each process. Unfortunately, it doesn't look like the /proc//fd entries list sockets on Solaris. Does anyone know how lsof would do it on this system? Or how one would even go about this in general? Just to restate what exactly it is I need: I need some way to find which processes are listening to which ports (without using lsof of course) on Solaris. 回答1: /proc/<pid>/fd lists all

How to setup cx_oracle in Solaris?

北慕城南 提交于 2019-12-11 12:32:58
问题 Need information on how to install the Python 3.4 x64 on Solaris x64. I can not find good information. 回答1: On Solaris 11.3, simply pkg install cx_oracle as described in https://blogs.oracle.com/jmcp/entry/cx_oracle_v5_2_for. If you need the module specifically for Python 3.4, it would be pkg install cx_oracle-34 . 来源: https://stackoverflow.com/questions/33779349/how-to-setup-cx-oracle-in-solaris

Distribute python application for Solaris OS by using pyinstaller gives me subprocess.py error

被刻印的时光 ゝ 提交于 2019-12-11 10:37:30
问题 According to official docsite, pyinstaller works under Solaris "PyInstaller is a program that converts (packages) Python programs into stand-alone executables, under Windows, Linux, Mac OS X, Solaris and AIX" but so far I got stucked.. I have built a development virtual environment under x86 Solaris 10u8 system and then installed pyinstaller (with pip) among other required modules... $> pip list distribute (0.7.3) ... pycrypto (2.6.1) PyInstaller (2.1) setuptools (3.6) wsgiref (0.1.2) Trying

pthread_cancel don't work under solaris

这一生的挚爱 提交于 2019-12-11 09:36:43
问题 #include <stdio.h> #include <pthread.h> #include <stdlib.h> #include <string.h> char a[]="Hello"; void * thread_body(void * param) { while(1) printf("%s\n", param); } int main(int argc, char *argv[]) { pthread_t threadHello; int code; pthread_create(&threadHello, NULL, thread_body, a); pthread_cancel(threadHello); pthread_exit(0); } When I compile and run this under Solaris 10 (SunOS 5.10), it doesn't stop. But under Linux it works as intended. 回答1: Per POSIX, printf (and all of stdio) may be

Truncate trailing characters in Solaris

白昼怎懂夜的黑 提交于 2019-12-11 08:45:24
问题 I have a text file in a Solaris workstation. Please see a sample of contents of the file below (The number of entries can vary): CMSBC01 TELNET_APG40 CMSBC01_1 TELNET_APG40 CMSBC03 TELNET_APG40 CMSBC03_1 TELNET_APG40 GMSC1 TELNET_APG40 GMSC2 SSH_APG40 I am only interested about the 1st column entries. I want the output to be : CMSBC01 CMSBC01_1 CMSBC03 CMSBC03_1 GMSC1 GMSC2 I have tried awk -F\; '{print $1}' /home/els/axelist.txt and also: cat axelist.txt | sed 's/ *//' But still not able to