Not executing /etc/profile

Hi,
I installed 10.4.2 from the CD that came with my PowerBook. Later, realising that X11 was not installed automatically, I reinstalled the entire OS using the custom mode. The old OS was shifted to PreviousSystem, which I deleted subsequently.
I notice that on booting, the command /etc/profile is not executed. As a result, the system wide PATH that should be available for all users does not get set up. Is there a bug or am I looking at the wrong profile file?
For individual users, .bash_profile is not automatically executed. Every time I have to issue the command "source .bash_profile" to execute them. I have the same question as above: is there a bug, or am I looking at the wrong file?
Thanks.
Kannan

/etc/profile is not supposed to be executed on booting. It and .bash_profile are only executed when a login bash shell is started. A new Terminal window starts a login shell; xterm does not. A non-login shell runs .bashrc. If you are using xterm, and want to run the profiles, you can source them in your .bashrc.

Similar Messages

  • [SOLVED] How do I set the default umask? Not in /etc/profile

    Hi guys
    This is probably not what you expect to hear about umasks... I have set it in /etc/profile:
    [2] ognyan@xxxlinux : ~ >grep umask /etc/profile
    #Set our umask
    umask 002
    If I log on via ssh, my umask is 0002. I can start a vnc server and a konsole inside, which has umask 0002. So far so good...
    I also have a vnc server running as a service. If I open a konsole from inside this vnc, bash says umask 0022. So there must be a more-default setting for umask, than /etc/profile. I found a setting in /etc/login.defs and changed it to "UMASK 007", then even rebooted, but bash inside the vnc service stays with umask 0022.
    It seems not to be a setting of KDE, since both vnc sessions have different umasks, inherited by their parents. What provides the environment for the service and how can I control it?
    Last edited by bigblondewolf (2013-12-11 08:37:26)

    on my server i have something like this in ~/.profile:
    # the default umask is set in /etc/profile; for setting the umask
    # for ssh logins, install and configure the libpam-umask package.
    umask 002
    and at home i have ~/.bash_profile, but no umask in it.
    or is this answer too obvious? not quite sure i get your problem.

  • Startup scripts in rc3.d not sourcing /etc/profile

    I'm trying to set some global parameters for the entire system e.g. JAVA_HOME
    I have placed these in /etc/profile
    If I login in as whoever /etc/profile is sourced.
    However when the system boots up /etc/profile is not sourced before a startup script e.g. /etc/rc3.d/S99xxxx is called
    Why is this and where can I set global parameters so that they are visible in the startup scripts and for anyone logging in etc.?

    /etc/profile (and $HOME/.profile) are not normally sourced by non-interactive shell invocations.
    Modify the script to source it explicitly if that's what you want.
    Darren

  • Cannot source /etc/profile from within the PKGBUILD anymore

    Hi,
    Short story: the command
    source /etc/profile
    within the build() section of my PKGBUILD now returns a build() error. It used to work before, is there a reason for this? Should it be executed in another section than build()? (Note source /etc/profile works properly in console, within the build directory)
    Long story:
    I need to use $JAVA_HOME in my PKGBUILD (to patch a lua source file with the current JDK path, which can be detected with $JAVA_HOME. Patching is done with a sed command). However, if java-environment is installed for the first time (as a makedepends) along with my package, then I need to source /etc/profile first to set the $JAVA_HOME environment variable, before being able to use it within my build() section. Otherwise it is not set yet and building fails.
    Many thanks for your help.
    Last edited by zebulon (2012-12-28 14:57:23)

    Hi,
    Many thanks for the advice. I was unclear though: I maintain the aacskeys package in AUR, not the lua package. However, the file I am patching in aacskeys is named premake.lua, used for the project file generator premake.sourceforge.net.
    I'll try your first suggestion, since this is the only one which may work without touching the system. Another alternative would be to directly source the /etc/profile.d/jdk.sh file. EDIT: nope, because there could be openjdk6.sh instead. I really need to be able to source the correct file. The maintainer of opencascade uses:
    if [ -z $JAVA_HOME ]; then
    [ -e /etc/profile.d/openjdk6.sh ] && source /etc/profile.d/openjdk6.sh
    [ -e /etc/profile.d/jdk.sh ] && source /etc/profile.d/jdk.sh
    fi
    which is efficacious but less generic.
    Besides, is it normal that we get this error code, since the Arch documentation only recommends to set LANG in /etc/locale.conf? SHould I report it as a bug or request a design change for /etc/profile.d/locale.sh there (as suggested in your (b) entry)? I am asking this because my PKGBUILD is not the only one to use this trick, and this problem breaks them all.
    Thanks.
    Last edited by zebulon (2012-12-30 06:14:58)

  • Scripts in /etc/profile.d seem not to work under certain circumstances

    While already logged in, if I open up a terminal and run a script in /etc/profile.d/ to set environment variables, the changes don't seem to take. I can think of two examples:
    1) Turning on KDE4 desktop integration in openoffice. I edited /etc/profile.d/openoffice.sh and changed OOO_FORCE_DESKTOP=KDE4, but when I ran the script I got an "export: command not found" error.
    2) When replacing Sun Java with OpenJDK in order to compile and use 389-console from the AUR, I got caught up on one of the dependencies, ldapjdk (also from the AUR). The PKGBUILD for this package contains the following block of code:
    which ant
    if [ $? -eq 1 ]; then
    . /etc/profile.d/apache-ant.sh
    fi
    ant dist
    In theory this should work, as /etc/profile.d/apache-ant.sh contains the following two lines:
    export ANT_HOME=/usr/share/java/apache-ant
    export PATH=$PATH:$ANT_HOME/bin
    However, upon running makepkg I got an error about "ant" not being in my path. To get around this I just edited the PKGBUILD and put the full path to ant, but this shouldn't have been necessary. The original PKGBUILD should have worked. I seem to have something out of whack and I don't quite know what. If anyone could be of assistance, it would be much appreciated.

    I'm well aware of this. I never said that I started openoffice from the plasma menu. I never even started it. /etc/profile.d/openoffice.sh errored out without setting the environment variable in the current shell session. If it had worked, I would have been able to run openoffice from the terminal to test the new environment variable, which is what I was intending to do in the first place. There's no need to logout to test these sort of changes, they can be done from the terminal.
    Your solution also doesn't address the problem I had in example #2, either. makepkg should be able to set environment variables in the current shell session, using the /etc/profile.d script detailed in the example. Running makepkg has nothing to do with my graphical session.
    I know that logging out and back in will "fix" the problem, but that's not the point. The point is that a script which should be able to set an environment variable is not working properly.
    Last edited by archtaku (2010-08-21 00:58:53)

  • The SQL query is not executing

    Hi
    I have the following situation: In a project we designed our reports calling a stored procedure the exits in a MS SQL Server 200 database. The Stored Procedures works fine and when they are used in the report everything works perfectly.
    The reports are being made with CR DEsigner 11, when the designer ends them, ha pass them to me and we put them in our java web application. I open them and even preview them since the Crystal Reprots Perspective of Eclipse and I can see the data, so everything to this point is OK.
    The problem comes when I change of connection, I'm trying to connect every report to the same host and database, and when the reprot is displayed in the browser there is no data. I profile the SQL commands that are executed when the report is requested and I found that the reprot is not executing the stored procedure.
    I guess because i'm connectring the report to the same database and host that was used when the report is created and i'm also passing exactly the same parameters of the stored procedure, then report thinks that it doesn't have executing again becuase it will be the same information.
    SO, i wonder if there is a way to request to the report to execute the sql query every time i have to display it.
    thanks for any help.

    What happens when you try to view the report using a simple viewer.jsp?without changing the connection?
    2009-05-25 14:06:09,250 ERROR com.businessobjects.reports.sdk.JRCCommunicationAdapter -  detected an exception: Error de conexión: [SQLServer 2000 Driver for JDBC]Error establishing socket.
    But the database server is ok, so i think the rpt needs more information to be connect to the database.
    Also what happens if you dont use the data bean and give everything there only?
    The same, the rpt is not executing the stored procedure.
    Did anything change on the RDBMS side? Additional packages, changes to the schema, ownership, etc?
    No, the server is ok and the database is ok.
    If you configure Log4J logging to DEBUG, you should see the database invokes from the Crystal Java engine, specifically the queries sent and the number of rowsets returned. Do you notice any errors?
    I have a problem here with log4j. In my project i'm using spring and with the help of spring i configure log4j, basically with spring is easier to configure log4j.
    I'm telling you this because i have log4j working but when my application reaches the code to change the connection to the rerport, log4j dies and stop sending any message to the stdout or to a log file. I haven't since this behavior in any other app o library. So i want to guess i have something wrong with my log4j or maybe with log4j+spring.
    So, i remove all the code of spring referring to log4j, but the problem with log4j wasn't solved.
    What i will try now is to remove spring from the project.
    This is my log4j.properties:
    log4j.rootLogger=DEBUG, stdout
    log4j.appender.stdout=org.apache.log4j.ConsoleAppender
    log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
    log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - %m%n

  • /etc/profile: line 28: ulimit: max locked memory: cannot modify limit: Oper

    Hi;
    I writed one sh which is checking tablespace size and its working well ( i used this before for someother client) Now i try to run it on one server and i have this error:
    /etc/profile: line 28: ulimit: max locked memory: cannot modify limit: Operation not permitted in /var/spool/mail/root
    Anyone has idea what is problem?
    Thanks

    Well, check line 28 of /etc/profile, and see what command it is trying to execute. If it's a ulimit -l command, check if the value it is trying to set the limit to is higher than the current ulimit value of the current user. If it is, then that operation is not allowed. You can increase the limit for the current user (at login time) by modifying /etc/security/limits.conf . This is documented in the various guides, notes, whitepapers that talk about installing Oracle database on Linux.

  • /etc/profile doesn't get sourced at start of session

    Hello to everyone :D. I've been using Windows my entire life until January when someone recommended me Ubuntu. I tried (and loved it) for some months but got sick of the lack of control, the pre-installed packages and the incorporation of Unity in 11.04, so went all out for Arch.
    It took me 2-whole-days to install everything correctly (because of issues related with the PC rather than Arch itself) and I've been configuring it bit by bit in the last two weeks (wasted my whole winter vacations on it, but it was worth it :P), ran through a lot of trouble which I've been (somehow) able to overcome almost completely by just using the Wikia (and Googling through old forum posts). I also learned a whole lot about Linux in that time and I'm very happy with my new system :D. So a thanks a lot to all the community for the great documentation you've developed, it really made a complete Linux-newbie (with a whole lot of patience :P) get a working system all by himself which is saying a lot.
    ------------------------------------------------------------------START READING HERE TO SKIP PERSONAL INTRO :P ---------------------------------------------------------------------
    However right now I'm having a couple of minor issues which don't prevent me from enjoying the system but I would rather fix in order to have a clean system (and avoid further trouble in the future). I have LXDE installed with Slim as a login manager which I start through inittab in run level 5 to start X (relevant files attached at the end of the post). The system was working perfectly but I noticed that my session wasn't being registered by ConsoleKit (it didn't appear in the "who" command which was a problem for some scripts I was building) so I read the wikia and added the following lines at "slim.conf":
    sessionstart_cmd    /usr/bin/sessreg -a -l $DISPLAY %user
    sessionstop_cmd     /usr/bin/sessreg -d -l $DISPLAY %user
    Which happily made the session appear at the "who" command as I needed. However some days after that, for no apparent reason (actually me touching config files probably), my PATH environment variable was wrong after booting (just had the /bin and /usr/bin on it, not /sbin or /usr/sbin). This just happens when I boot directly to X, when booting from a terminal the variable value was correct.
    After some research (and adding debugging commands in the initialization scripts) I concluded that my "/etc/profile" script wasn't getting ran when I boot directly to X. In order to bypass this problem temporally I made a (absolutely horrible and temporal) patch by adding the line "source /etc/profile" at ".xinitrc" which sourced the file and gave me the right value for the PATH variable. However by doing it seems I ruined the former problem and my session doesn't appear at the "who" command again :S (by removing it again, the session appears again but the PATH variable is wrong). So I've been searching exactly when /etc/profile is sourced and, apparently, it's when the "login" command is executed (which I guess is done by either the LXDE session or Slim itself).
    Since none of these packages got updates when the problem appeared I'm pretty sure it must have been one of my editions of the config files. So I leave the ones I think are relevant to the issue (and the ones that I tinkered it with the most).
    If anyone has the time to point me in the right direction I would greatly appreciate it:
    /etc/rc.conf: http://pastebin.com/qd5xYYsT
    /etc/inittab: http://pastebin.com/M1h60Hym
    /etc/slim.conf: http://pastebin.com/iaRqya07
    /etc/profile: http://pastebin.com/JLtNCMtn
    ~/.xinitrc: http://pastebin.com/XGrNuhpv
    My rc.local file is completely blank and rc.sysinit and rc.multi haven't been modified from their default values. If you need any more files, logs or any kind of experiment to gather more info just let me know and I'll post it as soon as I read it.
    Thanks a lot in advance :-).
    Last edited by facucosta (2011-07-27 08:29:50)

    There is quite some confusion about the different startup files For real terminal work you can check the bash manual. Graphical login managers however do not always follow these rules even though Slim should read /etc/profile as /etc/slim.conf seems to invoke bash with --login... You could try to put the settings in /etc/environment (see the arch wiki). There might also be a slim specific bug
    --edit--
    On second look line 35 seems odd in your slim.conf. You could try to change it to:
    login_cmd           exec /bin/sh --login ~/.xinitrc %session
    Last edited by FarmerF (2011-07-27 11:10:15)

  • [SOLVED] Some commands failed or not executed in rc.local

    Hi Archers
    I've installed initscripts to use rc.local in Arch,
    but at least below commands not successfully executed.
    export VISUAL="/usr/bin/vim -p -X"
    alias ll='ls -l'
    complete -cf sudo
    chmod 777 /dev/vmnet*
    Want to know why and how to fix it ?
    ======================================
    package check:
    pacman -Q | grep initscripts
    initscripts 2012.10.1-1
    ======================================
    rc.local
    #!/bin/bash
    # /etc/rc.local: Local multi-user start-up script.
    # set visudo to use vim as editor
    export VISUAL="/usr/bin/vim -p -X"
    # enable tab-completion with sudo
    complete -cf sudo
    # set alias
    alias ll='ls -l'
    # enable promiscuous mode for vmware interfaces
    chmod 777 /dev/vmnet*
    # show login screen on external monitor
    xrandr -q | grep "VGA1 connected" > /dev/null
    if [ $? -eq 0 ]; then
    #  xrandr --output VGA1 --mode 1440x900 --rate 60 --right-of LVDS1
      xrandr --output VGA1 --mode 1440x900 --rate 60 --output LVDS1 --off
    fi
    # up wlan0
    ip link show wlan0 | grep -i up > /dev/null
    if [ $? -ne 0 ]; then
      ip link set wlan0 up
    fi
    # connect to n13u wireless router
    iw dev wlan0 scan | grep -i n13u > /dev/null
    if [ $? -eq 0 ]; then
      kill $(pgrep wpa_supplicant)
      wpa_supplicant -Dwext -iwlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf -B
      #dhclient wlan0 # for Fedora
      kill $(pgrep dhcpcd)
      dhcpcd wlan0
    fi
    ======================================
    Snippet from dmesg
    [    8.061119] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
    [    8.171764] ppdev: user-space parallel port driver
    [    8.828551] /dev/vmnet: open called by PID 422 (vmnet-netifup)
    [    8.828558] /dev/vmnet: hub 0 does not exist, allocating memory.
    [    8.828568] /dev/vmnet: port on hub 0 successfully opened
    [    8.830003] /dev/vmnet: open called by PID 424 (vmnet-netifup)
    [    8.830008] /dev/vmnet: hub 1 does not exist, allocating memory.
    [    8.830020] /dev/vmnet: port on hub 1 successfully opened
    [    8.831297] /dev/vmnet: open called by PID 426 (vmnet-netifup)
    [    8.831301] /dev/vmnet: hub 2 does not exist, allocating memory.
    [    8.831311] /dev/vmnet: port on hub 2 successfully opened
    [    8.892082] /dev/vmnet: open called by PID 433 (vmnet-natd)
    [    8.892090] /dev/vmnet: hub 8 does not exist, allocating memory.
    [    8.892101] /dev/vmnet: port on hub 8 successfully opened
    [    8.902981] netlink: 12 bytes leftover after parsing attributes.
    [    8.902984] netlink: 12 bytes leftover after parsing attributes.
    [    8.903006] netlink: 12 bytes leftover after parsing attributes.
    [    8.903091] netlink: 12 bytes leftover after parsing attributes.
    [    8.904797] /dev/vmnet: open called by PID 434 (vmnet-netifup)
    [    8.904804] /dev/vmnet: port on hub 8 successfully opened
    [    9.087903] /dev/vmnet: open called by PID 437 (vmnet-dhcpd)
    [    9.087912] /dev/vmnet: port on hub 8 successfully opened
    [   10.607320] wlan0: authenticate with bc:ae:c5:7e:ba:fc
    [   10.627420] wlan0: send auth to bc:ae:c5:7e:ba:fc (try 1/3)
    [   10.628841] wlan0: authenticated
    [   10.640245] wlan0: associate with bc:ae:c5:7e:ba:fc (try 1/3)
    [   10.643649] wlan0: RX AssocResp from bc:ae:c5:7e:ba:fc (capab=0x431 status=0 aid=2)
    [   10.643794] wlan0: associated
    [   10.643806] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
    [   11.135609] userif-3: sent link down event.
    [   11.135611] userif-3: sent link up event.
    Any points would be highly appreciated.
    Liao
    Last edited by liao (2013-01-05 09:17:59)

    export VISUAL="/usr/bin/vim -p -X"
    alias ll='ls -l'
    complete -cf sudo
    chmod 777 /dev/vmnet*
    Ignoring that still using initscripts is discouraged, those commands should be executed by each session; that is, put them on your .bashrc (or .zshrc, if you use zsh)
    You are doing it there because you want those commands for every single user? Fine, put them on /etc/profile instead.
    oh! and learn to create unit files... really, is simple, and is the correct way
    Last edited by chris_l (2012-12-14 16:02:49)

  • [SOLVED] printenv output differs from settings in /etc/profile

    Hi, I just noticed that
    printenv PATH
    gives me something else (just '/usr/bin') than is defined in /etc/profiles, which is
    PATH="/usr/local/sbin:/usr/local/bin:/usr/bin"
    export PATH
    I'm using fish but there is no entry about variables in ./config/fish/config.fish.
    Thanks for your help!
    Last edited by ysetdng (2014-09-16 23:05:56)

    Let /etc/login.defs be, it isn't supposed to have the full PATH.
    Read https://wiki.archlinux.org/index.php/Fi … leshooting
    Arch wiki wrote:
    If you decide to set fish as your default shell, you may find that you no longer have very much in your path. You can add a section to your ~/.config/fish/config.fish file that will set your path correctly on login. This is much like .profile or .bash_profile as it is only executed for login shells.
    if status --is-login
    set PATH $PATH /usr/bin /sbin
    end
    Note that you will need to manually add various other environment variables, such as $MOZ_PLUGIN_PATH. It is a huge amount of work to get a seamless experience with fish as your default shell.

  • Error message "VI is not executable"! Need help with Application Builder

    Hello,
    I have a problem with an application, built with the Application Builder. I have read some threads about the problem I have, but I still don't know a solution.
    When I run my front panel from LabVIEW, everything is good. So, now I created an application (and an installer) to be able to run it on other PCs as well. This application does not work. Everytime I start it on my PC, I get the error "VI is not executable. ...". I read in several forums solutions for this error, but I cannot fix it! I've changed my properties for the builder, but with no success. Perhaps, anybody has more ideas, what's the problem.
    To get a better idea from my project, here a little description of it:
    In the block diagram there is a while loop which is continuously runned. In this loop I only set some properties for the layout of the front panel, such as decorations which will be hidden/shown and changes of colours of indicators... For the rest, it waits for a click on the button "Start" in the front panel. After that, a DLL is called to communicate with a USB device. Some measurements are carried out and the DLL is closed. I hope, you can get a global idea from my block diagram...
    I use LabVIEW 8.5, the DLL is a third-party DLL, which we wrote on our own. But I think the DLL works properly, if it is called from a C# application it works and it works, too, by calling it from LabVIEW when I am in development mode.
    It's a project for university and I'm just a beginner in LabVIEW, so I don't have so much experiences in it, but I think i improved my knowlegde about LabVIEW very well in the last weeks!
    So, i hope to get an answer soon (the deadline for the project is not soooo far away )
    If you need more information, please let it know...
    I would be very grateful if there is someone with a working solution...
    Kind regards from the Netherlands,
    Sebastian

    Sebastian,
    Your architecture makes it very difficult to debug this and other problems.  Does the error message mention which VI is causing the problem?  It is very important to wire your error clusters everywhere.  In LabVIEW, when a node throws an error (Error.Status = T), future nodes do not execute.  At the end, place an error cluster indicator that you can see on your front panel.  When an error posts, you can right click the indicator (even in a compiled application) and select "Explain Error".
    This is a start, but you really need to push this into a queued-state machine before this gets any more complicated.  As it were, if anything in your loop hangs, your whole application hangs.  See attached for a queued-message handler (not advisable for actual applications, but you get the point.  You would want to have a type defined enum in lieu of strings, and shared data between states differently, etc.)
    -Jason
    Message Edited by LabBEAN on 01-20-2009 08:36 AM
    Certified LabVIEW Architect
    Wait for Flag / Set Flag
    Separate Views from Implementation for Strict Type Defs
    Attachments:
    State Machine.vi ‏18 KB

  • Error 1003 - The vi is not executable​. Simulated DAQ-cards.

    Hi all,
    I am updating an application written in LabVIEW 7.1 for a customer. The code is not made by my company and is pretty horrendous but it works. I can not develop the code on the machine that it is supposed to run on so I have to do it on my own computer which means that I have to simulate two DAQ-cards that the program needs. I have pretty much finished the program and I want to test if I can build an exe-file. This is where I run in to trouble an get the error message:
    Error 1003 occurred at \\Server1\Users\martinh\LabVIEW Data\app\internal.llb\_Main.vi
    Possible reason(s):
    LabVIEW:  The VI is not executable.
    I know that this has been discussed at length here and that one has to look out for global variables, dynamically loaded VI:s etc. My question is, does anyone think that the simulated DAQ-cards give me trouble? Do they use some VI:s placed somewhere odd which I need to include when I build the application?
    Sincerely
    Martin

    Hi Martin,
    I suggest you try what is suggested in this link, some of the information is already covered in the posts above but some might be new.
    http://digital.ni.com/public.nsf/allkb/705C2ECA081​F3C7986256C0F00559B02?OpenDocument
    If you are using the office toolkit, it might be an idea to masscompile the _office folder and you might also need to uncheck the "Disconnect type definitions and remove unused polymorphic VI instances".
    Good Luck
    Andreas E
    Applications Engineer
    National Instruments

  • Compiling COBOLs in PSOVM - psrun.mak error - "cob64: can not execute Id".

    Hi All,
    After installing PeopleSoft OVM in our server, I need to recompile the COBOL. I believe this is not included in the OVM. These are the steps I did.
    1. Installed Microfocus Server Express 5.0 WrapPack 4
    2. Follow the steps in Compiling Cobol in Unix mentioned is the PeopleTools_8.50_Installation_Oracle guide.
    I was able to successfully compille the COBOL files by running ./pscbl.mak. The next step is Linking COBOL Components on UNIX by running ./psrun.mak and here I got the error:
    +./psrun.mak - linking PSRUN for oel-5-x86_64, Version 2.6.18-92.0.0.0.1.el5xen ...+
    +./psrun.mak - Error(s) encountered creating PSRUN!+
    +./psrun.mak - See /opt/oracle/psft/appbatch/tools/setup/psrun.err for messages+
    +[root@pshcm91ab setup]# more /opt/oracle/psft/appbatch/tools/setup/psrun.err+
    cob64: can not execute ld
    +[root@pshcm91ab setup]#+
    I followed all the steps in setting environment variable mention in the "Compiling Cobols in Unix" in PeopleTools_8.50_Installation_Oracle.
    Is there any specific documentation of compiling COBOLs in PeopleSoft OVM?
    Can anyone help me with this?
    Thanks in advance.
    -Chris
    Edited by: user9977167 on 4/02/2010 15:52
    Edited by: user9977167 on 5/02/2010 06:18

    Hi,
    Ok, I reproduce your case :
    [psadm1@psovmab setup]$ ./psrun.mak
    ./psrun.mak - linking PSRUN for oel-5-x86_64, Version 2.6.18-92.0.0.0.1.el5xen ...
    ./psrun.mak - Error(s) encountered creating PSRUN!
    ./psrun.mak - See /opt/oracle/psft/appbatch/tools/setup/psrun.err for messages
    [psadm1@psovmab setup]$ more /opt/oracle/psft/appbatch/tools/setup/psrun.err
    cob64: can not execute ld
    [psadm1@psovmab setup]$It looks like a lot of rpm packages required by ld are missing on Peoplesoft OVM App/Batch server compared to the Peoplesoft OVM database server for instance.
    I added a lot of packages because of the dependendcies as below :
    From OEL5.2 Disk 1
    ==================
    -rw-r--r-- 1 root root  899210 Feb  7 10:10 kernel-headers-2.6.18-92.el5.x86_64.rpm
    -rw-r--r-- 1 root root  3073639 Feb  7 10:25 binutils-2.17.50.0.6-6.el5.x86_64.rpm
    -rw-r--r-- 1 root root  3114462 Feb  7 10:29 cpp-4.1.2-42.el5.x86_64.rpm
    [root@psovmab rpm]# rpm -Uvh kernel-headers-2.6.18-92.el5.x86_64.rpm
    Preparing...                ########################################### [100%]
       1:kernel-headers         ########################################### [100%]
    [root@psovmab rpm]# rpm -Uvh binutils-2.17.50.0.6-6.el5.x86_64.rpm
    Preparing...                ########################################### [100%]
       1:binutils               ########################################### [100%]
    [root@psovmab rpm]# rpm -Uvh cpp-4.1.2-42.el5.x86_64.rpm
    Preparing...                ########################################### [100%]
       1:cpp                    ########################################### [100%]
    [root@psovmab rpm]#
    From OEL5.2 Disk 2
    ==================
    -rw-r--r-- 1 root root  614718 Feb  7 10:05 glibc-headers-2.5-24.x86_64.rpm
    -rw-r--r-- 1 root root 2535024 Feb  7 10:05 glibc-devel-2.5-24.x86_64.rpm
    -rw-r--r-- 1 root root 2105297 Feb  7 10:05 glibc-devel-2.5-24.i386.rpm
    -rw-r--r-- 1 root root 5544086 Feb  7 10:20 gcc-4.1.2-42.el5.x86_64.rpm
    -rw-r--r-- 1 root root 3987493 Feb  7 10:20 gcc-c++-4.1.2-42.el5.x86_64.rpm
    -rw-r--r-- 1 root root    83518 Feb  7 10:31 libgomp-4.1.2-42.el5.i386.rpm
    -rw-r--r-- 1 root root    84654 Feb  7 10:41 libgomp-4.1.2-42.el5.x86_64.rpm
    -rw-r--r-- 1 root root  2980440 Feb  7 10:43 libstdc++-devel-4.1.2-42.el5.x86_64.rpm
    -rw-r--r-- 1 root root    20483 Feb  7 11:46 elfutils-libelf-devel-0.125-3.el5.x86_64.rpm
    -rw-r--r-- 1 root root    58852 Feb  7 11:46 elfutils-libelf-devel-static-0.125-3.el5.x86_64.rpm
    -rw-r--r-- 1 root root   102193 Feb  7 11:49 elfutils-libs-0.125-3.el5.x86_64.rpm
    [root@psovmab rpm]# rpm -Uvh glibc-headers-2.5-24.x86_64.rpm
    Preparing...                ########################################### [100%]
       1:glibc-headers          ########################################### [100%]
    [root@psovmab rpm]#
    [root@psovmab rpm]# rpm -Uvh glibc-devel-2.5-24.x86_64.rpm
    Preparing...                ########################################### [100%]
       1:glibc-devel            ########################################### [100%]
    [root@psovmab rpm]#
    [root@psovmab rpm]# rpm -Uvh glibc-devel-2.5-24.i386.rpm
    Preparing...                ########################################### [100%]
       1:glibc-devel            ########################################### [100%]
    [root@psovmab rpm]# rpm -Uvh libgomp-4.1.2-42.el5.i386.rpm
    Preparing...                ########################################### [100%]
       1:libgomp                ########################################### [100%]
    [root@psovmab rpm]# rpm -Uvh libgomp-4.1.2-42.el5.x86_64.rpm
    Preparing...                ########################################### [100%]
       1:libgomp                ########################################### [100%]
    [root@psovmab rpm]# rpm -Uvh gcc-4.1.2-42.el5.x86_64.rpm
    Preparing...                ########################################### [100%]
       1:gcc                    ########################################### [100%]
    [root@psovmab rpm]# rpm -Uvh  libstdc++-devel-4.1.2-42.el5.x86_64.rpm
    Preparing...                ########################################### [100%]
       1:libstdc++-devel        ########################################### [100%]
    [root@psovmab rpm]#
    [root@psovmab rpm]# rpm -Uvh gcc-c++-4.1.2-42.el5.x86_64.rpm
    Preparing...                ########################################### [100%]
       1:gcc-c++                ########################################### [100%]
    [root@psovmab rpm]# rpm -Uvh elfutils-libs-0.125-3.el5.x86_64.rpm
    Preparing...                ########################################### [100%]
       1:elfutils-libs          ########################################### [100%]
    [root@psovmab rpm]# rpm -Uvh elfutils-libelf-devel-0.125-3.el5.x86_64.rpm elfutils-libelf-devel-static-0.125-3.el5.x86_64.rpm
    Preparing...                ########################################### [100%]
       1:elfutils-libelf-devel-s########################################### [ 50%]
       2:elfutils-libelf-devel  ########################################### [100%]
    [root@psovmab rpm]#
    From OEL5.2 Disk 3
    ==================
    -rw-r--r-- 1 root root  4588773 Feb  7 10:22 compat-gcc-34-3.4.6-4.x86_64.rpm
    -rw-r--r-- 1 root root 13542100 Feb  7 10:23 compat-gcc-34-c++-3.4.6-4.x86_64.rpm
    -rw-r--r-- 1 root root   232846 Feb  7 12:21 compat-libstdc++-33-3.2.3-61.x86_64.rpm
    [root@psovmab rpm]# rpm -Uvh compat-gcc-34-3.4.6-4.x86_64.rpm
    Preparing...                ########################################### [100%]
       1:compat-gcc-34          ########################################### [100%]
    [root@psovmab rpm]# rpm -Uvh compat-gcc-34-c++-3.4.6-4.x86_64.rpm
    Preparing...                ########################################### [100%]
       1:compat-gcc-34-c++      ########################################### [100%]
    [root@psovmab rpm]#The initial error is gone, but got a new one when linking :
    [psadm1@psovmab setup]$ ./psrun.mak
    ./psrun.mak - linking PSRUN for oel-5-x86_64, Version 2.6.18-92.0.0.0.1.el5xen ...
    ./psrun.mak - Error(s) encountered creating PSRUN!
    ./psrun.mak - See /opt/oracle/psft/appbatch/tools/setup/psrun.err for messages
    [psadm1@psovmab setup]$ more /opt/oracle/psft/appbatch/tools/setup/psrun.err
    ld: cannot find -lgcc
    [psadm1@psovmab setup]$I looked around for this error, found a Metalink note, but the suggestion does not apply here, the path directory metioned in $COBDIR/etc/cobopt already exists :
    [psadm1@psovmab setup]$ more $COBDIR/etc/cobopt
    -C nolist
    set GCC_LIB=/usr/lib/gcc/x86_64-redhat-linux/3.4.6
    [psadm1@psovmab setup]$ ls /usr/lib/gcc/x86_64-redhat-linux/3.4.6
    32          crtbeginS.o  crtend.o   include   libgcc_eh.a  libgcc_s_32.so  libstdc++.a   libstdc++_nonshared.a  libsupc++.a
    crtbegin.o  crtbeginT.o  crtendS.o  libgcc.a  libgcc_s.so  libgcov.a       libstdc++.so  libstdc++_shared.so    specs
    [psadm1@psovmab setup]$So far, no luck, I'll still try, but you may have more luck to install a separate server with all the packages install from the scratch and run a process scheduler from there.
    Nicolas.

  • Condition not executed in Plan

    Hi,
    we´ve got a sql statement which looks like that:
    SELECT BplSegment.SalesOrg, WeeklyBplDataMeta.Line
    FROM BPLSEGMENT BplSegment
    LEFT OUTER JOIN BPLDATA WeeklyBplData
    INNER JOIN BPLDATAMETA WeeklyBplDataMeta
    ON WeeklyBplDataMeta.PKey=WeeklyBplData.BplDataMetaPKey
    ON WeeklyBplData.BplSegmentPKey=BplSegment.PKey
    And WeeklyBplDataMeta.Sheet='SegmentSummary'
    And WeeklyBplDataMeta.Line IN ('TotalSalesPlanned','TotalCostsPlanned','TotalQtyPlanned','ROI-BplPlanned')
    and BplSegment.SalesOrg=N'0001'
    WHERE BplSegment.BplMainPKey= '0010000000391eog'
    And BplSegment.SysPeriodPKey= '0010000000387wvy'
    The result of the query is wrong. It seems that the part WeeklyBplDataMeta.Line IN ('TotalSalesPlanned','TotalCostsPlanned','TotalQtyPlanned','ROI-BplPlanned') is not executed in plan.
    Wrong Plan:
    !http://img213.imageshack.us/img213/4500/planl.png!
    If we delete the bold part of the statement we receive the correct data! The IN (TotalSalesPlanned, ...) part is then executed in plan.
    Correct Plan:
    !http://img204.imageshack.us/img204/7740/plan2h.png!
    Why is the condition and BplSegment.SalesOrg=N'0001' so significant to the plan?
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    Thx,
    Alex

    Well, this is a bit hard to follow.
    When you say "The result of the query is wrong." do you mean the actual data returned from the query, or just the access plan of the query? I would assume the latter based on your query plan posting, but i'm really not sure.
    Also, it's not that i don't believe you, but i don't typically believe TOAD, ~insert front end tool here~, etc... when it comes to things like this. Can you provide the results using a copy/paste from SQLPLUS?
    An example would be (which you would run for BOTH statements you have) ...
    SQL?ALTER SESSION SET STATISTICS_LEVEL = ALL;
    Session altered.
    --YOUR QUERY WOULD REPLACE MY EXAMPLE QUERY
    SQL?select *
    from t1
    where col1 = 100;
      2    3 
          COL1      COL2
           100         0
    SQL?SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY_CURSOR(NULL, NULL, 'ALLSTATS LAST'));
    PLAN_TABLE_OUTPUT
    SQL_ID     7z61ytum3h786, child number 0
    select * from t1 where col1 = 100
    Plan hash value: 2347959165
    | Id  | Operation              | Name  | Starts | E-Rows | A-Rows |   A-Time   | Buffers |
    |   1 |  TABLE ACCESS BY INDEX ROWID| T1    |        1 |         1 |      1 |00:00:00.01 |         4 |
    |*  2 |   INDEX UNIQUE SCAN         | T1_PK |        1 |         1 |      1 |00:00:00.01 |         3 |
    Predicate Information (identified by operation id):
       2 - access("COL1"=100)
    18 rows selected.
    SQL?Also, when posting, if you use the tags you can preserve the formatting of your code so it's easier to read.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Interactive reports do not execute with Z business role

    Hi all,
    We have created interactive reports which are working fine and displaying results with a standard business role. However, the report does not even execute when we use a custom business role - no blank screen no error, but the report does not execute at all.
    What could be missing ? Need your inputs please.
    Regards.

    Compare the profile value for the function profile id REPORTING_PROF in Z business role with your std business role. To check this go to define business roles> select your ZBusiness role>double click on Assign function profiles.
    Hope this helps!
    Regards,
    Kumar

Maybe you are looking for

  • Acknowledgement - IDoc-File & File-IDoc scenario

    Hi All,    Acknowledgement is possible in case of asynchronous IDoc-XI-File scenario? If yes, how to setup?    Same as above question for File-XI-IDoc scenario.    In case of synchronous scenario, how to setup email with acknowledgement? Thanks a lot

  • Problems after wrong lnguague install CS4 with Acrobat Pro

    I helped my friend with her new CS4 install. So CS4, Apple intel iMac (1 year old only). She got a Dutch education license. First, without thinking, I installed the whole thing in English. The serial did not work, and I realized I needed to reinstall

  • Call batch program from ABAP program

    hai guys, I have created one batch file in WINDOWS NT. Now i want to call this file from my ABAP program. How can i do this..is there any FM here..pls let me know. ambichan.

  • Add boolean property to user details

    I have created a km property with type "Boolean" and render "boolean" but UME card displays that property as text field. Portal: EP7.0SP16 Does anybody know is it possible to render custom attribute(booleans) as checkbox?

  • IPod Touch package - What is the white thing for?

    hi there! The package have a white "thing", if I may call it so, I don't know what is for. It have a slot that fit nicely for the USB cable. Also, the touch itself somewhat fit in it so it obviously has some docking function? Unfortunately it cannot