[torqueusers] [Fwd: Cluster Resources product information]

Martin Siegert siegert at sfu.ca
Mon Jan 4 12:05:31 MST 2010


On Mon, Jan 04, 2010 at 09:21:58AM -0700, Craig Tierney wrote:
> The path where torque libraries are installed is not
> in the library path.  Add it to /etc/ld.so.conf or
> add the path to the LD_LIBRARY_PATH variable.

That should not be necessary. When I compile torque the configure/make
system generates the proper -Wl,-rpath,<torque-prefix>/lib
flags. E.g., this is what I get:

gcc -DPBS_SERVER_HOME=\"/var/spool/torque\" -DPBS_ENVIRON=\"/var/spool/torque/pbs_environment\" -g -O2 -D_LARGEFILE64_SOURCE -W -Wall -Wno-unused-parameter -Wno-long-long -pedantic -Werror -o .libs/pbs_server accounting.o array_func.o array_upgrade.o attr_recov.o dis_read.o geteusernam.o issue_request.o job_attr_def.ojob_func.o job_recov.o job_route.o node_attr_def.o node_func.o node_manager.o pbsd_init.o pbsd_main.o process_request.o queue_attr_def.o queue_func.o queue_recov.o reply_send.o req_delete.o req_deletearray.o req_getcred.o req_holdjob.o req_jobobit.o req_locate.o req_manager.o req_message.o req_modify.o req_movejob.o req_quejob.o req_register.o req_rerun.o req_rescq.o req_runjob.o req_select.o req_shutdown.o req_signal.o req_stat.o req_track.o resc_def_all.o run_sched.o stat_job.o svr_attr_def.o svr_chk_owner.o svr_connect.o svr_func.o svr_jobfunc.o svr_mail.o svr_movejob.o svr_recov.o svr_resccost.o svr_task.o req_tokens.o job_qs_upgrade.o req_holdarray.o svr_format_job.o  ../lib/Libattr/libattr.a ../lib/Libsite/libsite.a ../lib/Libutils/libutils.a ../lib/Libpbs/.libs/libtorque.so  -Wl,--rpath -Wl,/usr/local/torque-2.4.3/lib

(where /usr/local/torque-2.4.3 is the prefix that I am using). Thus,
I suspect that libtorque.so.2 was moved to a different directory after
installation. Check the RPATH encoded into pbs_server:

objdump -x <torque-prefix>/sbin/pbs_server | grep RPATH

The output should include the directory where libtorque.so.2 is installed.

Cheers,
Martin

-- 
Martin Siegert
Head, Research Computing
WestGrid Site Lead
IT Services                                phone: 778 782-4691
Simon Fraser University                    fax:   778 782-4242
Burnaby, British Columbia                  email: siegert at sfu.ca
Canada  V5A 1S6

> Ken Nielson wrote:
> > Hi all,
> > 
> > I have forwarded a user problem installing TORQUE 2.4.3 on SUSE linux. I 
> > am hoping someone will know the problem right away.
> > 
> > Thanks
> > 
> > Ken
> > 
> > ------------------------------------------------------------------------
> > 
> > Subject:
> > Cluster Resources product information
> > From:
> > "Ezhilalan Ramalingam" <ezhilalanrb at gmail.com>
> > Date:
> > Sun, 3 Jan 2010 13:57:16 -0000
> > To:
> > <info at clusterresources.com>
> > 
> > To:
> > <info at clusterresources.com>
> > 
> > 
> > Hi
> > 
> >  
> > 
> > I have recently trying to install torque2.4.3 on a SUSE 10.1 linux and 
> > after the installation when I tried to give the command pbs_server –t 
> > create I got the following message.
> > 
> >  
> > 
> > Pbs_server: error while loading shared libraries: libtorque.so.2: cannot 
> > open shared object file: no such file or directory
> > 
> >  
> > 
> > Could any help please.
> > 
> >  
> > 
> > Thanks
> > 
> >  
> > 
> > Ezhilalan
> > 
> > 
> > ------------------------------------------------------------------------
> > 
> > _______________________________________________
> > torqueusers mailing list
> > torqueusers at supercluster.org
> > http://www.supercluster.org/mailman/listinfo/torqueusers
> 
> _______________________________________________
> torqueusers mailing list
> torqueusers at supercluster.org
> http://www.supercluster.org/mailman/listinfo/torqueusers


More information about the torqueusers mailing list