Trouble running Linux's codes

Hi, have a nice day. I am not sure it is OK to present my problem herein.
I am trying to use OpenFOAM-1.6 in Solaris 10. Because the OpenFOAM is developed and tested on Linux, I have a very hard time using it on Solaris.
I use GCC 4.3.3 to compile it successfully, but when I try to run some commands, some errors are met. For example,
shm% icoFoam
ld.so.1: icoFoam: fatal: relocation error: file /home/g9/a094039/OpenFOAM/OpenFOAM-1.6/lib/SunOS64GccDPOpt/libOpenFOAM.so: symbol ZSt16_ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l: referenced symbol not found
Killed
I have posted my problem in OpenFOAM-forum, but few people use Solaris there. I hope I can get some suggestions here.
Thanks a lot in advance.
with best regards,
Chiven

My friend we can't guess what problems you are facing... if you want help we need to know more.
MeTitus

Similar Messages

  • I am having trouble dating to version 3.6.14. I am running Linux/Ubutu OS and I get this error message:/tmp/p7x3vko2.part could not be saved, because the source file could not be read. Please help. Thank you , Deb

    I am having trouble dating to version 3.6.14 or updating to the Beta testing. I am running Linux/Ubutu OS and I get this error message:/tmp/p7x3vko2.part could not be saved, because the source file could not be read. Please help. Thank you , Deb

    Solved for me.
    I set the owner/permissions of my profile's mozilla folder's (and all the files in it) to read/write access, and the problem disappeared.
    in linux:''
    * cd /home/myusername/.mozilla
    * chown -cR myusername:mygroup ./
    * chmod -cR +rw ./
    '''Never do that with root privs (nor with sudo)'''

  • Stream-in images from client to server,without running the transmit code

    Hello all,
    Im using JMF for my current project.Right now,I am trying to only recieve images from the client without the client transmitting it.That is I dont want the transmit code to run on the client.
    I should just be able to stream in the images from client to server, without running the transmit code on client.
    Can this be done?
    Thanks in advance

    suppigs wrote:
    Can I know more about this?Sure.
    <Side A>
    You'd just need to write an application that doesn't have a GUI (so, a console-based application) that listens on some pre-determined port for a message to start broadcasting. Maybe you'd send it the IP/PORT number to start broadcasting on. Once it receives that message, it'd start broadcasting the web cam to the IP/PORT number until it received a message to stop. Once it stops, it'll just go back to waiting for the next "start" signal.
    <Side B>
    On the other side, you'd write an application that sends the start messages, receives/displays the videos, and then sends the stop signal. This will have a GUI, and be your "control program" so to speak.
    Then, once of have both of those programs working...if you're using Linux, you're done. If you're using Windows, you'd need to modify the <Side A> program so that it can run as a Windows service.
    There are a lot of ways to do this, you can google it or look at the following link:
    [http://twit88.com/blog/2007/09/19/open-source-software-to-start-up-java-as-windows-serviceunix-daemon/]

  • Trouble Running Host Command

    Hello folks I am trying to create a procedure to run linux host commands. I have found and used code available throughout the internet and it compiles and runs, but no matter what command I send to the host I get a 'Not Found' exception, even if I send as the command the full path to the executable. Here is my code:
    *1- Java Procedure*
    CREATE OR REPLACE AND COMPILE JAVA SOURCE NAMED "Host" AS
    import java.io.*;
    public class Host {
    public static void executeCommand(String command) {
    try {
    String[] finalCommand;
    if (System.getProperty("os.name").toLowerCase().indexOf("windows") != -1) {
    finalCommand = new String[4];
    finalCommand[0] = "C:\\winnt\\system32\\cmd.exe";
    finalCommand[1] = "/y";
    finalCommand[2] = "/c";
    finalCommand[3] = command;
    } else {                              // Linux or Unix System
    finalCommand = new String[3];
    //finalCommand[0] = "/bin/sh";
    //finalCommand[1] = "-c";
    //finalCommand[2] = "'" + command + "'";
    finalCommand[0] = command;
    finalCommand[1] = "";
    finalCommand[2] = "";
    // Execute the command...
    final Process pr = Runtime.getRuntime().exec(finalCommand);
    // Capture output from STDOUT...
    BufferedReader br_in = null;
    try {
    br_in = new BufferedReader(new InputStreamReader(pr.getInputStream()));
    String buff = null;
    while ((buff = br_in.readLine()) != null) {
    System.out.println("stdout: " + buff);
    try {Thread.sleep(100); } catch(Exception e) {}
    br_in.close();
    } catch (IOException ioe) {
    System.out.println("Error printing process output.");
    ioe.printStackTrace();
    } finally {
    try {
    br_in.close();
    } catch (Exception ex) {}
    // Capture output from STDERR...
    BufferedReader br_err = null;
    try {
    br_err = new BufferedReader(new InputStreamReader(pr.getErrorStream()));
    String buff = null;
    while ((buff = br_err.readLine()) != null) {
    System.out.println("stderr: " + buff);
    try {Thread.sleep(100); } catch(Exception e) {}
    br_err.close();
    } catch (IOException ioe) {
    System.out.println("Error printing execution errors.");
    ioe.printStackTrace();
    } finally {
    try {
    br_err.close();
    } catch (Exception ex) {}
    catch (Exception ex) {
    System.out.println("Exception: " + ex.getLocalizedMessage());
         ex.printStackTrace();
    *2- PL/SQL Package*
    CREATE OR REPLACE PACKAGE CIF_HOST_PKG IS
    PROCEDURE host (p_command IN VARCHAR2);
    END CIF_HOST_PKG;
    PROCEDURE host (p_command IN VARCHAR2)
    AS LANGUAGE JAVA
    NAME 'Host.executeCommand (java.lang.String)';
    END CIF_HOST_PKG;
    *3- Java Permission*
    EXEC Dbms_Java.Grant_Permission('CIF', 'SYS:java.lang.RuntimePermission', 'writeFileDescriptor', '');
    EXEC Dbms_Java.Grant_Permission('CIF', 'SYS:java.lang.RuntimePermission', 'readFileDescriptor', '');
    exec dbms_java.grant_permission( 'CIF', 'SYS:java.io.FilePermission', '/bin/sh', 'execute' );
    exec dbms_java.grant_permission( 'CIF', 'SYS:java.io.FilePermission', '/bin/ps', 'read , execute' );
    exec dbms_java.grant_permission( 'CIF', 'SYS:java.io.FilePermission', '/bin/ls', 'read , execute' );
    *4- Test Code*
    set serveroutput on size 1000000
    exec dbms_java.set_output(1000000)
    exec CIF_HOST_PKG.host('/bin/ls -l');
    *5- Test Output*
    anonymous block completed
    Exception: Exception during creation of the process: java.io.IOException: '/bin/ls -l' not found
    java.io.IOException: Exception during creation of the process: java.io.IOException: '/bin/ls -l' not found
         at java.lang.OracleProcess.start(OracleProcess.java:259)
         at java.lang.ProcessBuilder.start(ProcessBuilder.java:483)
         at java.lang.Runtime.exec(Runtime.java:591)
         at java.lang.Runtime.exec(Runtime.java:464)
         at Host.executeCommand(Host:24)
    Any idea on what am I doing wrong?
    Thank you in advance,
    Andre

    Has oracle user permissions to /bin/ls ?
    try in sqlplus:
    host /bin/ls -lIf not try chmod 777 /bin/lsElse you can try my package http://github.com/xtender/xt_svn
    select * from table(XT_SVN_TEST.shell_exec('/bin/ls -l /var/tmp'))Best regards,
    Malakshinov Sayan

  • Trouble running .java applettes from studio

    I am having trouble running javascript applettes from studio however they do work if run directly in MS explorer 6. The path for explorer exists in tools/options/sever and external tool settings/web browsers. Any suggestions?

    Do you have Java or JavaScript problems?
    Can you provide some code sample/steps to reproduce this?

  • Runtime exec to run linux scripts

    Hi,
    I have been having trouble running a simple linux script from within my java program. So far, this is the command line i am passing to the exec() method:
    String[] commandArray = {"/bin/sh", "-c", "sh",
    "/home/charles/java/ideaProjects/Condor/linuxScripts/LinuxSubmit.sh",
    "TwoMinTest.cmd"};
    Process proc = rt.exec(commandArray);
    The last paramater, "TwoMinTest.cmd" is a varibale that is passed to the script. The command works fine from a linux terminal window but from the java program the process just hangs with no out put from the script (the script does an echo "hello" first). Both the error and input streams obtained from the process do not output anything. If i instert a deliberate mistake into the command the error stream outputs it fine. Any idea why it hangs?
    thanks, Charles

    I've fixed it for anyone who's interested, this is what i did:
    String[] commandArray = {"/bin/sh", "-c", "sh"};
    Process proc = rt.exec(commandArray);
    OutputStream out = proc.getOutputStream();
    PrintWriter p = new PrintWriter(out);
    p.println("sh /home/charles/java/ideaProjects/Condor/linuxScripts/LinuxSubmit.sh " +
    "TwoMinTest.cmd");
    p.flush();
    and it flew like a bird.
    charles

  • Error while running a sample code

    Hello,
    I 'm getting the following error while i'm trying to run a
    sample code which I have imported into Flex 3.
    ===================================================================
    Severity and Description Path Resource Location Creation Time
    Id
    unable to open 'C:\Documents and Settings\sn55179\My
    Documents\Flex Builder
    3\FlexForDummies_Chapter3_Code\libs'FlexForDummies_Chapter3_Code
    Unknown 1237909480511 215
    ===================================================================
    Can anyone help me in resolving this issue.
    Many thanks in advance.

    It's very frustrating that FB stops working when the libs
    folder is missing. If you are checking in project files to a source
    control app like Perforce, empty folders don't get added, so if you
    don't add an initial dummy file, the next time you do a clean sync,
    the libs folder may not be there, and even though there is nothing
    there, FB complains. :-(

  • Crystal report run from ASP code significantly slower than when run in CRS

    We have CRS XI R2.  I developed a report that contains several on-demand sub-reports.  The report and sub-reports are very fast when run directly from CRS.  However, when I run from ASP (users run a link from the intranet), it takes 4 times longer (1 second on CRS, vs. 5-10 seconds on intranet).  The report takes longer, bringing up a sub-report takes longer and paging through sub-reports take longer.  What can be done to improve the speed of the report that is using the ASP code?  I used a sample program provided at this support site to develop the report and it is pretty basic code.  The only time I have a problem is when I have many sub-reports.  Since they are on-demand, I do not know why this would matter.

    This has been created as an incident with SAP support.  Things that you will want to check is making sure that you handle the postback to the code as you do not need to run your entire code on every postback.  This will help performance after the original load. 
    One other thing is to compare performance with the viewer within Infoview that uses the same backend server as your application, ie PSReportFactory uses the page server, so you'll want to test with the DHTML viewer.  RAS code (reportclientdocument) uses the Report Application Server so you will want to test with the Advanced DHTML viewer.

  • Help needed in running the HTML code

    <html>
    <head>
    <script language="LiveScript">
    function WinOpen() {
    msg=open("","DisplayWindow","toolbar=no,directories=no,menubar=no");
    msg.document.write("<HEAD><TITLE>Yo!</TITLE></HEAD>");
    msg.document.write("<CENTER><h1><B>This is really cool!</B></h1></CENTER>");
    msg.document.write("<body>Hi</body>");
    </script>
    </head>
    <body>
    <form>
    <input type="button" name="Button1" value="Push me" onclick="WinOpen()">
    </form>
    </body>
    </html>
    whenever i save the abouve code in .htm extension and try to run it, I am able to run it sucessfully.
    But whenever I run the below code by saving it as .htm extension then its not running sucessfully:
    <html>
    <head>
    <script language="LiveScript">
    function WinOpen() {
    msg=open("","DisplayWindow","toolbar=no,directories=no,menubar=no");
    msg.document.write("<HEAD><TITLE>Yo!</TITLE></HEAD>");
    msg.document.write("<CENTER><h1><B>This is really cool!</B></h1></CENTER>");
    msg.document.write("<body><form>
    <TABLE cellSpacing=1 cellPadding=1 width="75%" bgColor=silver border=1>
    <TR>
    <TD><STRONG>Enter Numeric Value *:</STRONG> </TD>
    <TD><INPUT name="tbAlphaNumeric" CatsType="NUMERIC" label="Alphanumeric" Mandatory="YES"> </TD>
    </TR>
    </TABLE>
    </form></body>");
    </script>
    </head>
    <body>
    <form>
    <input type="button" name="Button1" value="Push me" onclick="WinOpen()">
    </form>
    </body>
    </html>
    Here I want to display text box in a new fresh field...
    Thanks in advance:)

    Hi,
    The code did work. But I am not sucessfully able to display the values entered in 2nd page in the 3rd page.Please find the code below:
    <html>
    <head>
    <script language="LiveScript">
    function WinOpen() {
    if (document.form1.cap.value == "")
    alert("Enter value in text box");
    return;
    msg=open("","DisplayWindow","toolbar=no,directories=no,menubar=no, scrollbars=yes");
    msg.document.write("<HTML><HEAD><TITLE>Yo!</TITLE></HEAD>");
    msg.document.write("<CENTER><h1><B>This is really cool!</B></h1></CENTER>");
    msg.document.write('<BODY><form name="form2">');
    for(var i =0; i < document.form1.cap.value; i++)
    msg.document.write("<INPUT type=text name=tbAlphaNumeric>");
    msg.document.write("<br>");
    msg.document.write('<input type="button" name="Button2" value="Steal" onClick="javascript:window.opener.WinShow();">');
    msg.document.write('</form></BODY></HTML>');
    function WinShow() {
    msg=open("","DisplayWindow","toolbar=no,directories=no,menubar=no, scrollbars=yes");
    msg.document.write("<HTML><HEAD><TITLE>Great!</TITLE></HEAD>");
    msg.document.write("<CENTER><h1><B>Display of second page text elements!</B></h1></CENTER>");
    msg.document.write('<BODY><form name="form3">');
    for(var j =0; j < document.form1.cap.value; j++)
    msg.document.write(document.form2.tbAlphaNumeric[j].value);
    msg.document.write("<br>");
    msg.document.write('</form></BODY></HTML>');
    </script>
    </head>
    <body>
    <form name="form1">
    <INPUT type= "text" name=cap>
    <input type="button" name="Button1" value="Push me" onClick="WinOpen()">
    </form>
    </body>
    </html>

  • Hello i am having a problem in my 4s that it dosent run any USSD code it goes on calling , can any one help me i am mack from Karachi Pakistan

    Hello i am having a problem in my 4s that it dosent run any USSD code it goes on calling , can any one help me i am maqsood  from Karachi Pakistan

    Ok so I've done what you said and this is what it's come back ....
    I don't know that these are the errors , but they're the things which don't look right ...
    Throughout the shut down there is a recurring line ;
    It says ;
    Com.apple.launchd 1 0x100600e70.anonymous.unmount 301 PID still valid
    Then there are 2 more which I think are related ;
    Com.apple.securityd 29 PID job has I overstayed its welcome , forcing removal.
    Then the same with fseventd 48 and diskarbitrationd 13
    Oh and on Launchd1 : System : stray anonymous job at shut down : PID 301 PPID13 PGID 13 unmount...
    Then the last process says "about to call: reboot (RB_AUTOBOOT).
    Continuing...
    And stops ...
    Hope this means something to you ... Thanks again for your help so far :-)

  • Having trouble with my PHP code. Appers to get stuck on a white page.

    HI all,
    I have just began having trouble with my PHP code. Was working before and haven't made any changes to the code since last time it worked.
    What happens is after the form is submitted it goes to a white page (no text just all white page) and in the address bar it has the path for my php page. what supposed to happen is either it goes to a success page or a error page.
    I've had a problem where the info entered is correct but was directed to the error page. i managed to fix that issue but i am puzzled what is happening to my php page now.
    Mind you that i didn't write this code i just took over the responsiblities of this website and i am hopping that its a quick fix.
    I appreciate any help you could give me. Thank you.
    CODE:
    <?php
       $to = '[email protected]';
          $from = '[email protected]';
            //Make sure we have some info posted from the form...
            if (isset($HTTP_POST_VARS)){
                //Clear the body of the message to be sent
                $body = '';
                //go through all POSTed variables sent
                while (list($key, $value) = each($HTTP_POST_VARS)){
        if($key <> "Submit" && $key <> "submit") {
         $body .= $key . ' = ' . $value . "\r\n"; 
                //Now building mail headers.....
                $headers = "From: ".$from."\r\n";
                //Mail message
                $success = mail($to, "Email Club" . date("m/d/Y"), $body, $headers);
       // CURL stuff.....
       $ch = curl_init();
       curl_setopt($ch, CURLOPT_FAILONERROR, 1);
       curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
       curl_setopt($ch, CURLOPT_TIMEOUT, 4); //times out after 4s
       curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
                 if ($success){
        //readfile('http://www.lvpaiutegolf.com/thankyou.html');
        curl_setopt($ch, CURLOPT_URL,"http://www.lvpaiutegolf.com/thankyou.html");
        header("Location:http://www.lvpaiutegolf.com/thankyou.html");
                else{
                 // readfile('http://www.lvpaiutegolf.com/error.html');
         curl_setopt($ch, CURLOPT_URL,"http://www.lvpaiutegolf.com/error.html");
         header("Location:http://www.lvpaiutegolf.com/error.html");
       // Output
       //$result=curl_exec ($ch);
       //curl_close ($ch);
       //echo $result'";
    ?>

    Insert the install disk and boot from it. Use disk utitlity to repair your drive and check for errors (report any errors back here) then reinstall the os. This should not erase your data.

  • How to run a .bat code?

    how to run a .bat code?
    I have a code ,batch (.bat) in richtextbox1, and want , to text(code .bat) in richtextbox1 it was launched in the console cmd
    without the use of saving a file with this code and run it

    In your code, right-click on the word "Desktop". In the context menu, select "go to definition". The object browser opens. You will see other members of the SpecialFolder enum. You can examine these values and read the description below.
    One of them is "ProgramFiles". If you pass this value to GetFolderPath, it returns the path of the program files.
    Another way: In your code, move the caret to the word "desktop" and press Ctr+J. It will open the same list of enum values. Whenever you select an item in the list, the tooltip should also show a description of the enum value.
    Then look at
    System.IO.Path.Combine to combine the program files path with the sub folder path. The result will be the full path of the directory. You can call Path.Combine for every path name or file name that you want to add.
    Armin

  • I am having trouble running videos through Safari but not Google Chrome.  All I get is a black screen.  I have the latest adobe flash update and have enabled plug ins.  any suggestions?

    I am having trouble running videos through Safari but not Google Chrome.  All I get is a black screen.  I have the latest adobe flash update and have enabled plug ins.  any suggestions?

    Open System Preferences > Flash Player then select the Advanced tab.
    Click Delete All under Browsing Data and Settings
    Not empty the Safari cache.
    From your Safari menu bar click Safari > Preferences then select the Advanced tab.
    Select:  Show Develop menu in menu bar
    Now click Develop from the menu bar. From the drop down menu click Empty Caches.
    Now try a video.

  • Trouble running DurableSubscriberExample

    Hi
    I am having trouble running the "DurableSubscriberExample.java" that is in Appendix A of the "Java Message Tutorial" (http://java.sun.com/products/jms/tutorial/1_3_1-fcs/doc/client_samples.html#1002876)
    These are the steps I followed:
    1. I compiled the classes - "DurableSubscriberExample.java" and "SampleUtilities.java".
    2. I stared the j2ee server.
    3. I created a topic called jms/Topic as follows:
    j2eeadmin -addJmsDestination jms/Topic topic
    4. I created a connection factory with a Client ID by copy-pasting the following from the tutorial (section 8.2.3) as instructed:
    j2eeadmin -addJmsFactory jms/DurableTopicCF topic -props clientID=MyID
    5. Then I specified the connection factory name and the topic name on the command line as instructed:
    java -Djms.properties=C:\j2sdkee1.3.1\config\jms_client.properties DurableSubscriberExample DurableTopicCF jms/Topic
    This is the error I get:
    JNDI API lookup failed: javax.naming.NameNotFoundException: DurableTopicCF not found
    Any idea what's wrong?

    I installed J2sdkee1.3.1 to Win98, I can startup the J2ee server. Once I typed j2eeadmin -addJmsDestination MyQueue queue, I got the following message :
    C:\j2sdkee1.3.1\bin>j2eeadmin -addJMSDestination jms/MyQueue queue
    Usage:
    -addJdbcDriver <class name>
    -addJdbcDatasource <jndi name> <url>
    -addJdbcXADatasource <jndi name> <class name> [<xa user name> <xa password>] [-
    rops (<name>=<value>)+]
    -addJmsDestination <jndi name> (queue|topic)
    -addJmsFactory <jndi name> (queue|topic) [-props (<name>=<value>)+]
    -addConnectorFactory <jndi name> [<app name>:]<rar filename> [<xa user name> <x
    password>] [-props (<name>=<value>)+]
    -list<resource type>
    -remove<resource type> <name>
    -removeAll<resource type>
    my j2eeadmin.bat as follow
    @echo off
    REM
    REM Copyright 2002 Sun Microsystems, Inc. All rights reserved.
    REM SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
    REM
    rem
    rem Set JAVA_HOME and J2EE_HOME before running this script.
    rem
    if not "%J2EE_HOME%" == "" goto CONT0
    echo ERROR: Set J2EE_HOME before running this script.
    goto END
    :CONT0
    if EXIST "%J2EE_HOME%\bin\setenv.bat" goto CONT1
    echo ERROR: Set J2EE_HOME to the path of a valid j2sdkee.
    goto END
    :CONT1
    call %J2EE_HOME%\bin\setenv.bat
    if not "%JAVA_HOME%" == "" goto CONT2
    echo ERROR: Set JAVA_HOME before running this script.
    goto END
    :CONT2
    if EXIST "%JAVA_HOME%\bin\java.exe" goto CONT3
    echo ERROR: Set JAVA_HOME to the path of a valid jdk.
    goto END
    :CONT3
    rem @echo on
    %JAVA_HOME%\bin\java -Xmx128m -D%SSL_OPTION1%=%SSL_OPTION2% -D%JAAS_OPTION1%=%JAAS_OPTION2% -Dcom.sun.enterprise.home=%J2EE_HOME% -classpath %CPATH% com.sun.enterprise.tools.admin.AdminTool %*
    :END
    I can start up the server. I can use the deploytool, so that my setenv may be correctly.
    Any expert can help me. thank a lottttttttttt

  • Reg: While running  SGEN transaction code

    Dear All,
    In my system 4.7 verison  is there.When i am running every transaction code i am getting ABAP dump error. So that i am running the transaction code SGEN . Once i  run that transaction code i  got the process 5 %  completed like that. That time i was stopped that process and gone away. While now i want to run that transaction code freshly. I couldnt able to find out the initial screen for the transaction code for SGEN.   I am getting final screen of the transaction code.(5% completed screen). What i have to do running the SGEN transaction code freshly.
    Thanks,
    Sankar M

    This is not rigth, if the SGEN is interrupted or canceled the main page won´t appear unless you use back button or cancel the job using SGEN, then a new option will show indicating to generate the remaining objects that were not generated in the last run.
    Just use back button and use the new option mentioned.

Maybe you are looking for

  • SAP Script Check printing Layout, Line Items to display twice in First Page

    Hi All, This requirement is for US check printing Layout. My Requirement is to display Items twice on the first page. Eg : Main Window has 10 Items, I need to display all the Items at the bottom in another window at the bottom. I can't create 2 Main

  • Problems with authorizing my computer

    I authorized my new computer, but every time I try to play a song purchased with an old account, it tells me I need to authorize this computer. But when I type in my username and password, nothing happens. Then I try to go to Store, authorize this co

  • How to convert  RUN_TOTAL_TIME ?

    Hi How can I to convert column RUN_TOTAL_TIME in Hour , Minute and Second ? Thanks

  • How do I send an iphoto slideshow to facebook

    I am computer illiterate and can't figure this out. I made a slideshow on iphoto but want to export it to Facebook to post on my page...  how do I do it? Sorry, Thanks,

  • Checkbox value is backwards

    JHeadstart 10.1.3.2.52 Info from Application Definition Editor Java Type: Number Display Type: checkBox Domain : Static values (0,1) Default Display Value: 0 When I run the app the checked value is 0 and unchecked is 1. I want that reversed.