Ss12u1 on linux: relocation R_X86_64_32 against `a local symbol' can not be

hello all,
i've installed SS12u1 on a Sun x2270 under Centos 5.4.
We have to recompile a (veryhuge) scientific app that compiled fine on Solaris 10 amd64 with SS12u1, so the makefiles are identical between the two machines.
But, we faced the following error:
cd /mnt/PELICANS/PelicansTest/lib/octopus-CC/opt2/ ; \
CC -G -o /mnt/PELICANS/PelicansTest/lib/octopus-CC/opt2//../libpel2.so  \
-fast -m64  \
-L/home/minjeaud/PELICANS/PelicansTest/lib/octopus-CC -R/home/minjeaud/PELICANS/PelicansTest/lib/octopus-CC  \
-L/usr/local/UMFPACKv4.4/UMFPACK/Lib -R/usr/local/UMFPACKv4.4/UMFPACK/Lib  \
-L/usr/local/UMFPACKv4.4/AMD/Lib -R/usr/local/UMFPACKv4.4/AMD/Lib  \
-L/usr/include -R/usr/include    \
PDE_0D_Q0_1node.o   PDE_1D_P0_1node.o   PDE_1D_P1_2nodes.o   PDE_1D_P2_3nodes.o   PDE_2D_P0_1node.o   PDE_2D_P0_1node_RefinerA.o   ...........................
-lCstd -lCrun  -lumfpack -lamd -lsunperf -lz -lm
/opt/sun/sunstudio12.1/prod/lib/amd64/ld: /opt/sun/sunstudio12.1/prod/lib/amd64/libmopt.a(f_atan2.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/opt/sun/sunstudio12.1/prod/lib/amd64/libmopt.a: could not read symbols: Bad valueI'm surprised that the error relates to a file included in Sunperf
The sunstudio is fully patched:
rpm -qf /opt/sun/sunstudio12.1/prod/lib/amd64/libmopt.a
sun-langx-12.1-3Is there a problem with this file?
if i suppress "-lm" on the command line, it seems to link correctly, but:
octopus:opt2> ldd ../libpel2.so
        libCstd.so.1 => /opt/sun/lib/rtlibs/amd64/libCstd.so.1 (0x00002b075804c000)
        libCrun.so.1 => /opt/sun/lib/rtlibs/amd64/libCrun.so.1 (0x00002b0758415000)
        libsunperf.so.3 => /opt/sun/sunstudio12.1/lib/amd64/libsunperf.so.3 (0x00002b075862c000)
        libc.so.6 => /lib64/libc.so.6 (0x00002b075b98c000)
        libm.so.6 => /lib64/libm.so.6 (0x00002b075bce3000)
        libfsu.so.1 => /opt/sun/sunstudio12.1/lib/amd64/libfsu.so.1 (0x00002b075bf67000)
        libfui.so.1 => /opt/sun/sunstudio12.1/lib/amd64/libfui.so.1 (0x00002b075c3d4000)
        /lib64/ld-linux-x86-64.so.2 (0x0000003fc5e00000)
        libmtsk.so.1 => not found
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00002b075c50e000) i notice that there is a libm in /usr/lib, is it better than libm from sunstudio?
and why it doesn't find libmtsk? in solaris, libmtsk is in /usr/lib, i don't know if it exists in linux?
A find shows me that it exists here:
$ find /opt/sun/ -name libmtsk.so.1
/opt/sun/sunstudio12.1/rtlibs/libmtsk.so.1
/opt/sun/sunstudio12.1/rtlibs/amd64/libmtsk.so.1 Does it mean that i have to use LD_LIBRARY_PATH=/opt/sun/sunstudio12.1/rtlibs ?
Does a documentation exist for this kind of usage on linux?
Thanks in advance for help,
gerard

unfortunately, it doesn't work even with the -L -R flags:
CC -G -o /mnt/PELICANS/PelicansTest/lib/octopus-CC/opt2//../libpel2.so  \
-fast -xnolibmopt -O4 -KPIC -m64  \
-L/home/minjeaud/PELICANS/PelicansTest/lib/octopus-CC -R/home/minjeaud/PELICANS/PelicansTest/lib/octopus-CC  \
-L/usr/local/UMFPACKv4.4/UMFPACK/Lib -R/usr/local/UMFPACKv4.4/UMFPACK/Lib  \
-L/usr/local/UMFPACKv4.4/AMD/Lib -R/usr/local/UMFPACKv4.4/AMD/Lib  \
-L/usr/include -R/usr/include    \
-L/opt/sun/sunstudio12.1/rtlibs/amd64 -R/opt/sun/sunstudio12.1/rtlibs/amd64 \
PDE_0D_Q0_1node.o   PDE_1D_P0_1node.o   PDE_1D_P1_2nodes.o ...... \
-lCstd -lCrun -lc -library=sunperf -lumfpack -lamd -lz
ldd /mnt/PELICANS/PelicansTest/lib/octopus-CC/libpel2.so
        libCstd.so.1 => /opt/sun/sunstudio12.1/rtlibs/amd64/libCstd.so.1 (0x00002b560621a000)
        libCrun.so.1 => /opt/sun/sunstudio12.1/rtlibs/amd64/libCrun.so.1 (0x00002b56065e3000)
        libc.so.6 => /lib64/libc.so.6 (0x00002b56067fa000)
        libz.so.1 => /usr/lib64/libz.so.1 (0x00002b5606b52000)
        libsunperf.so.3 => /opt/sun/sunstudio12.1/lib/amd64/libsunperf.so.3 (0x00002b5606d66000)
        libfui.so.1 => /opt/sun/sunstudio12.1/lib/amd64/libfui.so.1 (0x00002b560a0c5000)
        libfsu.so.1 => /opt/sun/sunstudio12.1/lib/amd64/libfsu.so.1 (0x00002b560a1d6000)
        /lib64/ld-linux-x86-64.so.2 (0x0000003fc5e00000)
        libm.so.6 => /lib64/libm.so.6 (0x00002b560a643000)
        libmtsk.so.1 => not found
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00002b560a8f0000)but if i use LD_LIBRARY_PATH:
( setenv LD_LIBRARY_PATH /opt/sun/sunstudio12.1/rtlibs/amd64 ; ldd /mnt/PELICANS/PelicansTest/lib/octopus-CC/opt2//../libpel2.so )
        libCstd.so.1 => /opt/sun/sunstudio12.1/rtlibs/amd64/libCstd.so.1 (0x00002ba0c37a7000)
        libCrun.so.1 => /opt/sun/sunstudio12.1/rtlibs/amd64/libCrun.so.1 (0x00002ba0c3b70000)
        libc.so.6 => /lib64/libc.so.6 (0x00002ba0c3d87000)
        libz.so.1 => /usr/lib64/libz.so.1 (0x00002ba0c40df000)
        libsunperf.so.3 => /opt/sun/sunstudio12.1/lib/amd64/libsunperf.so.3 (0x00002ba0c42f3000)
        libfui.so.1 => /opt/sun/sunstudio12.1/lib/amd64/libfui.so.1 (0x00002ba0c7652000)
        libfsu.so.1 => /opt/sun/sunstudio12.1/lib/amd64/libfsu.so.1 (0x00002ba0c7763000)
        /lib64/ld-linux-x86-64.so.2 (0x0000003fc5e00000)
        libm.so.6 => /lib64/libm.so.6 (0x00002ba0c7bd0000)
        libmtsk.so.1 => /opt/sun/sunstudio12.1/rtlibs/amd64/libmtsk.so.1 (0x00002ba0c7e54000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00002ba0c7fc5000)
        librt.so.1 => /lib64/librt.so.1 (0x00002ba0c81e0000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00002ba0c83ea000)gerard

Similar Messages

  • HT4623 Dear AppleCare,  My iPhone 5 was bought with full price in the USA from Sprint, and I was told that it is a global phone.  But when I am back in China  using local carrier,  Can not be activated

    >
    >>Dear AppleCare,
    >>My iPhone 5 was bought with full price in the USA from Sprint, and I was told that it is a global phone.
    >>But when I am back in China  using local carrier,  Can not be activated
    >>I can't believe that !
    >>>Details:
    >>>SN:F1*******8GL
    <Personal Information Edited by Host>

    Sorry to tell you this but this is not AppleCare.
    This is a forum of users just like yourself who do their best to help other users.
    We are not able to help you with your problem

  • Local SUS & can not connec to Applestore

    Local SUS on ML.
    Clients with Managed Preferences pointinmg to this SUS.
    Command line softwareupdate works fine.
    But GUI Software Update invokes idiotic App Store app which obviously (corporate firewall) can not connect to App Store.
    Anyway for the GUI Software Update to behave same way it did in Lion & before?
    Seb

    Probably now... - http://managingosx.wordpress.com/2012/08/02/mountain-lion-and-software-update/
    Can't believe that people just live with it, as it was normal!

  • OpenCV, cannot build package, 'a local symbol cannot be used'

    Hi
    I'm tryin to build the OpenCV package from AUR.
    http://aur.archlinux.org/packages.php?ID=1747
    But i doesn't compile:
    g++ -shared -nostdlib /usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.2/../../../../lib/crti.o /usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.2/crtbeginS.o .libs/dummy.o -Wl,--whole-archive./.libs/lib_highgui.a -Wl,--no-whole-archive -Wl,--rpath -Wl,/home/wishes/build/opencv/opencv/src/opencv-1.1.0/cxcore/src/.libs -Wl,--rpath -Wl,/home/wishes/build/opencv/opencv/src/opencv-1.1.0/cv/src/.libs ../../cxcore/src/.libs/libcxcore.so ../../cv/src/.libs/libcv.so -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lcairo-lpango-1.0 -lfreetype -lfontconfig -lgdk_pixbuf-2.0 -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lxml2 -lglib-2.0 -lgstbase-0.10 -lpng12 /usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.2/../../../../lib/libjpeg.a -lz -ltiff -ljasper -lpthread -ldl -L/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.2 -L/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.2/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.2/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.2/crtendS.o /usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.2/../../../../lib/crtn.o -msse2 -march=x86-64 -mtune=generic -pthread -pthread -Wl,-soname -Wl,libhighgui.so.2 -o .libs/libhighgui.so.2.0.0
    /usr/bin/ld: /usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.2/../../../../lib/libjpeg.a(jcapimin.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.2/../../../../lib/libjpeg.a: could not read symbols: Bad value
    collect2: ld returned 1 exit status
    Any ideas on this?
    i tried both backends, gstreamer and ffmpeg.

    After i searched a bit, i found out that they suggest with linking errors to do a "autoreconfig" and a "make distclean". When i try that, i get:
    make[3]: Entering directory `/home/wishes/build/opencv/opencv/src/opencv-1.1.0/cxcore/src'
    /bin/sh ../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I../../cxcore/include -I../..  -DNDEBUG  -Wall -fno-rtti -pipe -O3 -g  -msse2   -MT cxalloc.lo -MD -MP -MF .deps/cxalloc.Tpo -c -o cxalloc.lo cxalloc.cpp
    ../../libtool: line 847: X--tag=CXX: command not found
    ../../libtool: line 880: libtool: ignoring unknown tag : command not found
    ../../libtool: line 847: X--mode=compile: command not found
    ../../libtool: line 1014: *** Warning: inferring the mode of operation is deprecated.: command not found
    ../../libtool: line 1015: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
    ../../libtool: line 1158: Xg++: command not found
    ../../libtool: line 1158: X-DHAVE_CONFIG_H: command not found
    ../../libtool: line 1158: X-I.: command not found
    ../../libtool: line 1158: X-I../..: No such file or directory
    ../../libtool: line 1158: X-I.: command not found
    ../../libtool: line 1158: X-I../../cxcore/include: No such file or directory
    ../../libtool: line 1158: X-I../..: No such file or directory
    ../../libtool: line 1158: X-DNDEBUG: command not found
    ../../libtool: line 1158: X-Wall: command not found
    ../../libtool: line 1158: X-fno-rtti: command not found
    ../../libtool: line 1158: X-pipe: command not found
    ../../libtool: line 1158: X-O3: command not found
    ../../libtool: line 1158: X-g: command not found
    ../../libtool: line 1158: X-msse2: command not found
    ../../libtool: line 1158: X-MT: command not found
    ../../libtool: line 1158: Xcxalloc.lo: command not found
    ../../libtool: line 1158: X-MD: command not found
    ../../libtool: line 1158: X-MP: command not found
    ../../libtool: line 1158: X-MF: command not found
    ../../libtool: line 1158: X.deps/cxalloc.Tpo: No such file or directory
    ../../libtool: line 1158: X-c: command not found
    ../../libtool: line 1211: Xcxalloc.lo: command not found
    ../../libtool: line 1216: libtool: compile: cannot determine name of library object from `': command not found
    make[3]: *** [cxalloc.lo] Error 1
    make[3]: Leaving directory `/home/wishes/build/opencv/opencv/src/opencv-1.1.0/cxcore/src'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/home/wishes/build/opencv/opencv/src/opencv-1.1.0/cxcore'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/wishes/build/opencv/opencv/src/opencv-1.1.0'
    make: *** [all] Error 2

  • Relocation R_X86_64_PC32 against...

    I really don't know what to do with this, but it seems like it may be useful information.
    I build x264 from subversion every time I notice an update. I've been doing it for a long time without any problems. Then on Nov. 24, I came across this error:
    /usr/bin/ld: common/amd64/pixel-sse2.o: relocation R_X86_64_PC32 against `x264_pixel_sad_8x4_mmxext' can not be used when making a shared object; recompile with -fPIC
    /usr/bin/ld: final link failed: Bad value
    collect2: ld returned 1 exit status
    make: *** [libx264.so.57] Error 1
    Alright, fine, another -fPIC error. I guessed that filing a bug report could be done through forum.doom9.org, and this was the result:
    http://forum.doom9.org/showthread.php?p=1069246
    Problem solved, right?
    Today I went to build FFmpeg from subversion, and received the exact same error. The same solution also worked.
    This is all beyond the scope of my understanding. I don't know if this is something that needs to be reported to somewhere or what. I do know that GCC updated right before this started to happen. Any thoughts?

    i had exactely the same error compiling x264 with atleast revision 700. i avoided this problem by simply not building the shared library.
    however building the shared object worked with revisions 702 and 705.
    as of now (12:15 UTC) both x264 (rev705) and ffmpeg (rev11124) can be built without errors on my machine (i suppose u got a x86_64 one aswell).

  • Powershell Script to Update Central PolicyDefintions Store against the local machine

    Hi all,
    i've created a powershell script to update my central policydefinitions store against a local machine for example the newest domaincontroller or member server. It can be started with the parameters -source (for the source directory e.g. C:\Windows\PolicyDefinitions)
    and -destination (for the target directory e.g. C:\Windows\SYSVOL_DFSR\sysvol\domain.local\Policies\PolicyDefinitions).
    It checks the source directory for language folders and admx files. Compares the Fileage with the files in the target directory and allows you to replace them. Maybe this script is helpful for one of you and maybe someone can check it and give me some feedback
    to make this script better.
    Please be very careful with this and try it on your own risk. You should try it in a testenvironment first. Or e.g. against an empty target directory. In the first version the script asks for confirmation for every single change against the target directory.
    You can find it here: http://pastebin.com/dwJytWck
    Regards

    Hi,
    You may also want to add this script to the script repository:
    https://gallery.technet.microsoft.com/scriptcenter
    That'll make it easier for more people to find.
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • Can not use any remote desktop like VNC after installing Oracle Linux 6.3

    Hi
    I just installed OL 6.3 on a HP Proliant ML380 g7. Now I want to connect to the server using any Remote Desktop tools but I can not!
    I've activated system>pref>Remote Desktop
    But I can not access any of servers from:
    - a Mac using, Mac server sharing screen, VNC viewer or Microsoft Remote connection which is in a same subnet
    - Other Server Using KRDC, Remote Desktop Viewer, terminal server client or tiger VNC viewer
    Also I tried to connect to servers after activating krfb
    but it always says no rout to server/ server not found/ connection closed
    and remote desktop viewer can not find any host when I try to use option "find"
    Please Advise
    Thank you in advance

    Make sure to enable "require a password..." in the Remote Desktop Preference on the Linux system. Some clients won't work unless this is set. Unfortunately the Remote Desktop Preferences panel on the Linux side does not show you the port it is listening on, but you can get it by clicking on the IP or name that it shows as a link. The first user or vnc server is usually listening on port 5900, then 5901, and so on.
    Your problem is probably the firewall on your Linux system. You can disable the firewall on the Linux system:
    service iptables stop
    However, probably a better idea, simply tunnel the connection through SSH as following:
    On the Mac, open the Terminal application from the Applications/Utilities folder. Then type the following:
    <pre>
    ssh -L local_port:localhost:remote_port -N -f -l username server_address
    </pre>
    local_port = port on your Mac that does not conflict with any of your own screen-sharing or other services, e.g. 5555
    remote_port = vnc server port on your Linux system
    username = user for which you have enabled remote desktop sharing
    server_address = ip address or FQDN of your Linux system.
    For instance:
    <pre>
    ssh -L 5555:localhost:5900 -N -f -l root 10.0.1.2
    </pre>
    The trick is now to connect to a local port on your Mac, instead using the address of your Linux server. The communication will be encrypted using ssh going over tcp port 22, which is normally enabled in the firewall.
    The Mac screen sharing application is working fine. On your Mac, select "Go>Connect to Server" from the Finder menu and type:
    vnc://localhost:5555

  • Localized symbols in keyword field in rules and queries

    Hello!
    Has anyone successful used localized symbols (not English ones) during rule or queries creating?
    In User Guide I did not find any objection against it. I successfully created inspection rule. But when when I run a report on this rule it ends with PSOD.
    Any help would be so great!
    With best regards,
    Maxim

    Hi there.  I think you need to move the casting statement before you assign the transaction number.  So the code would be:
    WA_ZHEADER TYPE table of ZTMW_HEADER_COM initial size 0
    and i am using field symbols as header
    field-symbols : <fs1_header> type ztmw_header_com
    and then I am Assigning it
    assign wa_zheader to <fs1_header> casting.
    <fs1_header>-transaction_num = transaction_num.
    append <fs1_header> to wa_zheader.
    I hope this helps.
    - April King

  • Local Currency is not maintained

    Hi guys,
    I've done transfer posting (mvt type 301) and this error message was popped out
    "Local currency of cons unit XXXX-1234 is not maintained"
    and the diagnosis is :
    "the master data of consolidation unit XXX-1234 does not show a local currency"
    Why did this error message happen? and what steps do I need to config the currency? Kindly need your help to solve this issue.
    Thanks and Regards

    Hi ,
    Please check  whether u maintained Hard currency In T.Code OY01 against ur country. 
    Can u give Message No.
    Regards,
    Chowdary

  • Can not print from Firefox/Linux

    Is there anything I can do to get a flash movie to print from
    Firefox or some other browser running under Linux?
    I created a program in flash that uses both flash and php to
    access MySql but when the data is displayed in the movie, it can
    not be printed. Tried the browser print button, flash menu and
    action script to print but only get blank page.
    Any Ideas?
    Linux Fedora Core 4, Fedora Core 5, Red Hat Enterprise Linux
    ES 4 - Tried Netscape and Firefox.
    I have not tried a different distro, could this be a RH
    problem?

    on peopletools 8.44 firefox is not a certified platform. from peopletools 8.48 they started certifying firefox and safari.
    please look into My oracle support for a list of certified browsers and platforms on Peopletools 8.44 release.
    please try to use IE as a default browser.

  • An error The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered after launching a ps1 script from cmd file.

    I'm trying to load sharepoint script from *.cmd file. 
    I have Sharepoint 2010 installed on Windows 7 x64 and SQL server 2008r2.
    My cmd file is: 
    Powershell -v 2 -NonInteractive -NoLogo -File 1.ps1
    My sharepoint file 1.ps1 is:
    $snapin="Microsoft.SharePoint.PowerShell"
    if ($action -eq $null -or $action -eq '')
    {<br />
    # Action by default is complete uninstallation.
    $action='uninstall'
    $uninstall = $true
    else
    $action = $action.ToLower()
    switch($action)
    { $_ -eq "uninstall" } { $uninstall = $true; break }
    { $_ -eq "removesolution" } { $removeSolution = $true; break }
    { $_ -eq "deactivatecorpus" } { $deactivateCorpus = $true; break }
    { $_ -eq "deactivatesupport" } { $deactivateSupport = $true; break }
    default { Write-Host -f Red "Error: Invalid action: $action "; Exit -1 }
    Check the Sharepoint snapin availability.
    if (Get-PSSnapin $snapin -ea "silentlycontinue")
    Write-Host "PS snapin $snapin is loaded."
    elseif (Get-PSSnapin $snapin -registered -ea "silentlycontinue")
    Write-Host "PS snapin $snapin is registered."
    Add-PSSnapin $snapin
    Write-Host "PS snapin $snapin is loaded."
    else
    Write-Host -f Red "Error: PS snapin $snapin is not found."
    Exit -1
    $url = "http://pc1/sites/GroupWork/"
    $site= new-Object Microsoft.SharePoint.SPSite($url )
    $loc= [System.Int32]::Parse(1033)
    $templates= $site.GetWebTemplates($loc)
    foreach ($child in $templates){ write-host $child.Name " " $child.Title}<br />
    $site.Dispose()
    The script works fine from the Sharepoint 2010 management shell after launching the shell from the start menu (or from windows cmd by entering powershell -v 2):
    PS C:\2> .\1.ps1 
    PS snapin Microsoft.SharePoint.PowerShell is loaded.
    GLOBAL#0 Global template
    STS#0 Team Site
    STS#1 Blank Site
    STS#2 Document Workspace
    MPS#0 Basic Meeting Workspace
    MPS#1 Blank Meeting Workspace
    MPS#2 Decision Meeting Workspace
    MPS#3 Social Meeting Workspace
    MPS#4 Multipage Meeting Workspace
    CENTRALADMIN#0 Central Admin Site
    WIKI#0 Wiki Site
    BLOG#0 Blog
    SGS#0 Group Work Site
    TENANTADMIN#0 Tenant Admin Site
    {248A640A-AE86-42B7-90EC-45EC8618D6B4}#MySite2 MySite2
    {95629DC2-03B1-4C92-AD70-BC1FEAA49E7D}#MySite1 MySite1
    {7F01CFE4-F5E2-408B-AC87-E186D21F624C}#NewSiteTemplate NewSiteTemplate
    PS C:\2>
    I have an access to the database Sharepoint_Config from current domain user and from other 2 users. All users have db_owner rights to the Sharepoint_Config database. But
    i've loaded in windows from the user which is dbo in the database (dbo with windows authentication with domain\username for the current user). The dbo user has do_owner rights in the Sharepoint_Config database. I've tried to login under other users and launch
    the cmd file but without success.
    My PowerShell has version 2.0: 
    PS C:\2> $psversiontable
    Name Value
    CLRVersion 2.0.50727.5477
    BuildVersion 6.1.7601.17514
    PSVersion 2.0
    WSManStackVersion 2.0
    PSCompatibleVersions {1.0, 2.0}
    SerializationVersion 1.1.0.1
    PSRemotingProtocolVersion 2.1
    After launching the script from 1.cmd file i get an errors:
    C:\2>Powershell -v 2 -NonInteractive -NoLogo -File 1.ps1
    PS snapin Microsoft.SharePoint.PowerShell is registered.
    The local farm is not accessible. Cmdlets with FeatureDependencyId are not regis
    tered.
    Could not read the XML Configuration file in the folder CONFIG\PowerShell\Regist
    ration.
    Could not find a part of the path 'C:\2\CONFIG\PowerShell\Registration'.
    No xml configuration files loaded.
    Unable to register core product cmdlets.
    Could not read the Types files in the folder CONFIG\PowerShell\types.
    Could not find a part of the path 'C:\2\CONFIG\PowerShell\types'.
    "No Types files Found."
    Could not read the Format file in the folder CONFIG\PowerShell\format.
    Could not find a part of the path 'C:\2\CONFIG\PowerShell\format'.
    No Format files Found.
    PS snapin Microsoft.SharePoint.PowerShell is loaded.
    New-Object : Exception calling ".ctor" with "1" argument(s): "The Web applicati
    on at http://Pc1/sites/GroupWork/ could not be found. Verify t
    hat you have typed the URL correctly. If the URL should be serving existing con
    tent, the system administrator may need to add a new request URL mapping to the
    intended application."
    At C:\2\1.ps1:48 char:18
    + $site= new-Object <<<< Microsoft.SharePoint.SPSite($url )
    + CategoryInfo : InvalidOperation: (:) [New-Object], MethodInvoca
    tionException
    + FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.Power
    Shell.Commands.NewObjectCommand
    Please help me. I don't understand why the script is launched from the sharepoint management shell but doesn't work from the cmd file.

    I have an answer for my problem:  for solving a problem I've made several steps:
    1. Run farm installation under AD admin credentials - runas /user:Domain1\DomainAdmin1 "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN\psconfigui.exe".
    This user has been added as farm administrator in the wizard.
    This user has been added as DBO in the SQL Server. (This is the main difference with my previous attempts)
    2. Execute a command Add-SPShellAdmin Domain1\UserAccount1 in
    the Management Shell of Sharepoint.
    3. Run SQL server and add Sharepoint_Shell_Access to the Domain1\UserAccount1
    (my main account) in the Config database
    4. Run CMD file only from Start->Run menu. 
    runas /user:Domain1\UserAccount1 "C:\1.cmd".
    Do not use Total Commander command prompt or file list for executing *.cmd of *.bat files without root administrator account.
    Thanks all for help.

  • C:\users\owwner\AppData\local\apple\applesoftwareupdate\itunes64.msi can not be found

    itunes on my boys computer got corrupt.  I believe it was when I tried updating.  Anyhow, I have downloaded teh current itunes file from apple and when I install it a window comes up that says it can not find C;\users\owner\appdata\local\apple\applesoftwareupdate\itunes64.msi
    I have done a search all over the computer and that file does not exist.  I tried repairing itunes in control panel and it comes up with the same message.  I tried deleting itunes in control panel and the same thing.
    I tried deleting all files that contained itunes or apple in my compter because I thought there might be some hidden file that was saying there was an older version still installed and keeping if from installing right.
    Any ideas how to get itunes back on this computer?  It will not load.
    kevin

    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get aCode 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • Can not focus or edit on JTextField on SuSe Linux 9.1

    Hi,
    I am trying to debug a strange problem with JTextField on SuSe Linux 9.1.
    The problem is that the mouse click can not gain focus to the JTextField
    in a very high frequency. Once problem occurs, the keyboard tab also
    does not work. The problem does not happen all the time.
    I wrote a simple event listener that dump out events that confirm that
    the TextField got the mouse click event.
    We are using JDK1.4.2_05.
    The same piece of code works fine with Windows XP and RedHat.
    I would greately appreciated if you have any suggestion to debug this
    issue.
    Thanks,

    The first thing to do is identify which of the two rows with the same key value are correctly referenced by rows in other tables.  If all referencing rows relate to only one of the errant pair then you can insert the non-key values from the other
    one into a new row, and then delete the original 'bad' row.  If you find that there are rows in referencing tables which relate to each of the errant pair, then, after copying the non-key values from one into a new row and deleting the 'bad'  original,
    you'll need to change the foreign key values in those rows in any referencing tables which related to the 'bad'  original to the value of the primary key in its replacement row.  You'll need to delete the relationship before doing any of this of
    course.
    Once you've done the above I'd then be inclined to copy the table to a new one under a different name, delete the original table, rename the copy to the original name, and then re-create the enforced relationship.  Finally, compact and repair the database.
    Ken Sheridan, Stafford, England

  • After upgrading ACS 3.3.1 to 4.2 on windows the local database is not working

    Hi,
    I have upgaded the ACS 3.3.1 for windows server to 4.2. Everything went fine but the local database is not working.
    The CD is an upgrade kit from 3.x to 4.2 on windows. I tried to install directly the 4.2 I was able to install but integration with AD/LDAp is not working. Anysay its an upgrade kit so I cant expect it shoud work when install drectly the 4.2 but by upgrading from 3.3 to 4.2 everything should work fine.
    I followed the upgradation path as recomended.
    Also we have a requirment that once it is upgraded to 4.2 we need to shift the whole thing from the physical server to a virtual machine on VMware ESX server 3.5.
    Can anybody pls guide me if anything else to do after the upgradation.
    Thanks & Regards
    Sachi

    Hi Javier,
    First of all I was facing a problem of restoring the old database of 3.3 to 4.2. Somehow I overcame that issue by following the below steps. Now local authentication is working fine but AD/other External database authentication is not working. As you told the setting for the unknown users are configured to fetch the credentials from the external database if it is not in the local database.
    Do we need to do anything in the AD itself?
    Regards
    Sachi
    Steps for ACS upgrade to 4.2 version
    Below are the requested steps mentioned for the up gradation from ACS 3.3.2 to ACS 4.2.
            1)     Take a configuration backup from existing ACS. ACS--->System
    configuration----> ACS Backup
    2)    now if you have  ACS 3.3.2 on server. take backup of the ACS
    3)   Insert the cd or if you have the set up on the system then  Run the setup of ACS 3.3.4. During the process it will prompt you to
    upgrade existing configuration. Make sure you check that option else we will
    loose the database. Now you need to hit next.next to finish the 3.3.4 upgrade.
    4)     Once you are at 3.3.4, take a backup and keep it handy.
    5)     Run the setup of 4.1.1. During this process it will prompt you to
    upgrade existing configuration. Make sure you check that option else we will
    loose the database. Now you need to hit next.next to finish the 4.1 upgrade.
    6)Once you are at 4.1.1.24 take a backup and keep it handy.
    7)     Run the setup of 4.2. During this process it will prompt you to
    upgrade existing configuration. Make sure you check that option else we will
    loose the database. Now you need to hit next.next to finish the 4.2 upgrade.
    8)     Once you are at 4.2 take a backup and keep it handy. Now run the
    patch 12 and take a backup again.
    9)     Now fresh install 4.2 on your new production server and install patch
    12. Restore the 4.2 patch 12 backup and you should be all set.

  • "Setup encountered a problem while validating the state of Active Directory: Exchange organization-level objects have not been created, and setup cannot create them because the local computer is not in the same domain and site as the schema master. Run se

    Team,
    I am trying to Install Exchange on my Lab, getting below error
    message.
    The Schema Role is installed on Root Domain and trying to install
    exchange on Child domain.
    1 Root Domain - 1 Child domain. both are located on single site.
    “Setup encountered a problem while validating
    the state of Active Directory: Exchange organization-level objects have not been created, and setup cannot create them because the local computer is not in the same domain and site as the schema master. Run setup with the /prepareAD parameter and wait for
    replication to complete.”
    Followed below articles:
    http://support.risualblogs.com/blog/2012/02/21/exchange-2010-sp2-upgrade-issue-exchange-organization-level-objects-have-not-been-created-and-setup-cannot-create-them-because-the-local-computer-is-not-in-the-same-domain-and-site-as-the-sche/
    http://www.petenetlive.com/KB/Article/0000793.htm
    transferred the schema roles to different server on root domain, still no luck.
    can someone please help me.
    regards
    Srinivasa k
    Srinivasa K

    Hi Srinivasa,
    I guess, you didn't completed the initial setup schemaprep and adprep before starting the installation. You can do it as follows:
    1. Open command Prompt as administrator and browse to the root of installation cd and run Setup.exe /PrepareSchema /IAcceptExchangeServerLicenseTerms
    After finishing this,
    2. Setup.exe /PrepareAD /OrganizationName:"<organization name>" /IAcceptExchangeServerLicenseTerms
    3. To prepare all domains within the forest run Setup.exe /PrepareAllDomains /IAcceptExchangeServerLicenseTerms. If you want to prepare a specific domain run Setup.exe /PrepareDomain:<FQDN of the domain you want to prepare> /IAcceptExchangeServerLicenseTerms
    4. Once you complete all of the 3 steps, install the pre-requisities for Exchange 2013
    5. Finally, run the setup program
    Hope this will help you
    Regards from Visit ExchangeOnline |
    Visit WindowsAdmin

Maybe you are looking for