solaris-10

Error ORA-12154 on DBI->connect to Oracle database with Oracle Instant Client in Solaris 10

大兔子大兔子 提交于 2021-02-10 18:42:56
问题 I've been pulling my hair out over this problem for two days now: I'm trying to get a perl script to interface with an Oracle database. I have a new server I'd like to deploy my application on. This script previously worked. Here's what I've done so far: Placed my tnsnames.ora file in instantclient/network/admin: ls -la network/admin/ total 8 drwxrwxrwx 2 m staff 512 Apr 19 09:54 . drwxrwxrwx 3 m staff 512 Mar 28 15:56 .. -rwxrwxrwx 1 m staff 777 Apr 19 09:54 tnsnames.ora My Perl script looks

How to tell CPAN about path to make and cc

限于喜欢 提交于 2020-01-22 19:09:09
问题 Running Perl 5.10 CPAN on Solaris with opencsw.org packages, Makefile.PL from packages can't find the correct path and cc (gcc). I found the path to make and set it to gmake, but I can't find any setting for cc. I thought I once set this in CPAN/Config.pm (or with o config ...) but can no longer find any setting and don't have enough patience to wade through the thicket to figure out where such a basic thing gets set. Does anyone know? 回答1: cpan doesn't need to know where gcc or equivalent is

How to grep particular string occurring multiple times [duplicate]

佐手、 提交于 2020-01-06 10:09:23
问题 This question already has answers here : how to grep one string occuring multiple times from same file (3 answers) Closed 5 years ago . I want to capture a string "1 row affected..". But problem is there are n no of such string present in the same file. My concern to capture "1 row affected.." only which is present after the string " UPDATE kplustp..Service SET Service_Name = "PositionService", ServiceType = \'Z\', Hostname = " " " in log file. "1 row affected.." will be present after 3 4

tail command showing log file contents in non-real time

丶灬走出姿态 提交于 2020-01-06 08:39:51
问题 I have a C++ application (on Solaris 10) that shows log output based on the time chronological transactions. For example, before establishing a connection to Database server, it prints in stdout as: "Connecting to DB" and after the call to connect, if successful, says "Connected to DB", if failed, says, "failed to connect to DB" and so on. Now, when the application is run, the output (stdout) gets redirected to a log file as below: appl > app.log And, on another session, to see what's going

Compile Apache 2.4.2 in Solaris 10 in a x86 machine (64bits) errors

本秂侑毒 提交于 2020-01-04 09:04:39
问题 I'm having a hard time compiling Apache 2.4.2 in Solaris 10 in a x86 machine (64bits) I installed all the required programs without problems, but when configuring (or doing make) with apache it explode. I don't know if the problem is the env vairables. I don't know which one is failing -if this was the case-. Here is a mini script (ran it with: source script ) to illustrate what I'm doing ( Notice that I install everything in /opt using the prefix flag): #!/bin/sh #Set ENV variables export

How can I extract a substring after a certain string in ksh?

非 Y 不嫁゛ 提交于 2019-12-25 13:47:08
问题 If I have a string like this: The important variable=123 the rest is not important. I want to extract the "123" part in ksh. So far I have tried: print awk ' {substr($line, 20) }' | read TEMP_VALUE (This 20 part is just temporary, until I work out how to extract the start position of a string.) But this just prints awk ' {substr($line, 20) }' | read TEMP_VALUE (though this format does work with code like this: print ${line} | awk '{print $1}' | read SINGLE_FILE ). Am I missing a simple

How can I extract a substring after a certain string in ksh?

和自甴很熟 提交于 2019-12-25 13:46:11
问题 If I have a string like this: The important variable=123 the rest is not important. I want to extract the "123" part in ksh. So far I have tried: print awk ' {substr($line, 20) }' | read TEMP_VALUE (This 20 part is just temporary, until I work out how to extract the start position of a string.) But this just prints awk ' {substr($line, 20) }' | read TEMP_VALUE (though this format does work with code like this: print ${line} | awk '{print $1}' | read SINGLE_FILE ). Am I missing a simple

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

How to install Git on Solaris 10?

牧云@^-^@ 提交于 2019-12-24 11:27:12
问题 My query is regarding installing Git on Solaris 10. uname -a gives bash-3.00# uname -a SunOS 5.10 Generic_141444-09 sun4u sparc SUNW,Sun-Fire-V240 I want to use Solaris server as Git central repository while Windows based users to use the git repository on Solaris server for project activities. What are the steps for installation? What I need to install for users on Windows platform so they can use git? 回答1: On Solaris, you can follow the instruction on opencsw or git-scm to install Git. On

Unable to include cmath using GCC 5.5 on Solaris 10

风流意气都作罢 提交于 2019-12-23 14:57:08
问题 I am trying to run the following test program on my Solaris 10 sparc machine using gcc 5.5.0 #include <iostream> #include <cmath> int main() { std::cout << "exp2(4) = " << std::exp2(4) << '\n' << "exp2(0.5) = " << std::exp2(0.5) << '\n' << "exp2(-4) = " << std::exp2(-4) << '\n'; return 0; } Here are the OS details, ~$ uname -a SunOS sovms577 5.10 Generic_147147-26 sun4v sparc SUNW,SPARC-Enterprise-T5220 ~$ cat /etc/release Oracle Solaris 10 1/13 s10s_u11wos_24a SPARC Copyright (c) 1983, 2013,