Sponsored Content
Operating Systems Linux Deploying Qt on CentOS - libc.so.6 update problem Post 302488772 by Corona688 on Tuesday 18th of January 2011 12:51:30 PM
Old 01-18-2011
Your development system has much newer software than your server, too new to still be compatible it seems. Replacing your current libc is a very bad idea -- I'm glad you didn't lock yourself out of your server, we get a new threads about "I messed up my libc now nothing works what do I do" with fair regularity.

I'd make the executable demand very specific versions and paths -- i.e. link in /usr/local/lib/libc-2.12.1.so instead of libc.so.6. Specific versions of any other libraries it complains about, too. Then you can copy them over to your server without overwriting existing libraries. I suggest /usr/local/lib instead of /lib/ or /usr/lib/ because that lets you track very carefully what things you've copied over by hand instead of dumping them in with the rest of the pile.

---------- Post updated at 11:51 AM ---------- Previous update was at 10:14 AM ----------

If you can add -Xlinker -R /usr/local/lib to your code when you compile it, that will force it to look in /usr/local/lib/ first, and fall back on /lib/ etc. if it doesn't find things available in there.

Code:
$ echo "int main() { return 42; }" > 42.c
$ gcc 42.c -o 42
$ ldd 42
        linux-gate.so.1 =>  (0xb7888000)
        libc.so.6 =>  /lib/libc.so.6 (0xb762b000)
        /lib/ld-linux.so.2 (0xb7889000)
$ cp /lib/libc.so.6 ./
$ gcc -Xlinker -rpath=$PWD 42.c -o 42
$ ldd ./42
        linux-gate.so.1 =>  (0xb78bb000)
        libc.so.6 => /home/tyler/code/c/1shot/libc.so.6 (0xb7771000)
        /lib/ld-linux.so.2 (0xb78bc000)
$ rm libc.so.6
$ ldd ./42
        linux-gate.so.1 =>  (0xb777a000)
        libc.so.6 => /lib/libc.so.6 (0xb7627000)
        /lib/ld-linux.so.2 (0xb777b000)


Last edited by Corona688; 01-18-2011 at 02:08 PM..
This User Gave Thanks to Corona688 For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Centos commands: Yum Upgrade versus Yum update

Hi, I would like to know the difference between YUM UPDATE and YUM UPGRADE. The man pages say upgrade is same as update with the obsolete option. And by default it says the obsolete option is turned on, which would make them equivalent. Does not say what obsolete does. Can someone please... (3 Replies)
Discussion started by: mojoman
3 Replies

2. AIX

Problem restoring libc.a (AIX 5.3)

Hi, The symbolic link from /usr/lib/libc.a to /usr/ccs/lib/libc.a was deleted by accident. So we are trying to restore it, but we have some problems. After booting from CD, and access the rootvg volume group (without mounting the system), we tried to execute the next commands: mount /dev/hd4... (1 Reply)
Discussion started by: NicoAIX
1 Replies

3. UNIX for Dummies Questions & Answers

problem of networking in centos

Hello, I am using dual boot of linux, one is ubuntu and the other is one is centos. I have three NIC's and only one of them connected with cable. The thing is that when I boot from the ubuntu, it does recognize it and I am connected to the Internet. When I boot from the centos I am not... (6 Replies)
Discussion started by: programAngel
6 Replies

4. HP-UX

hpux-itanium 64 bit problem for libC

i am trying to build on hpux-itanium 64 bit platform. my application needs to link to 64 bit version of the library libCsup.so This library is present in /usr/lib/hpux64/libCsup.so I am specifying the location of this library as linker flags LDFLAGS := -Wl,-N -Wl,+s... (0 Replies)
Discussion started by: skyineyes
0 Replies

5. Red Hat

CentOS 6.2 update errors.

Hello Every one, plz help me out regarding the following outputs .... # yum update -y Loaded plugins: aliases, auto-update-debuginfo, changelog, downloadonly, : fastestmirror, filter-data, fs-snapshot, kabi, keys, list-data, : local, merge-conf,... (1 Reply)
Discussion started by: saqlain.bashir
1 Replies

6. Red Hat

Bluetooth problem in CentOS 6

Hi , I have install centos6.3 64bit, other things are working fine.:b: I am trying to use bluetooth. It is showing bluetooth icons and options only turn on and turn off bletooth.:confused: How to enable full features of bluetooth like search, send file etc.:wall: (7 Replies)
Discussion started by: Priy
7 Replies

7. UNIX for Dummies Questions & Answers

Using symbolic link for database MySQL in CentOS, not update sizing

I have no idea what I should set the topic here ==' This is my story, please you there kindly help me I'm quite newbie for this. ================================== My host server is CentOS, I spared 9.9GB for /var path that used by MySQL and...It's full because of heavy load traffic, then... (1 Reply)
Discussion started by: Kapom
1 Replies

8. Linux

Unable to access CentOS setup Network Configuration after attempting Python update

I attempted to update Python on my CentOS 5.6 VM and have encountered some issues after then. Initially yum wouldn't work, but I have resolved that. However, now I am unable to access the Network Configuration section under setup. When I do select this option I see this at the command line: ... (2 Replies)
Discussion started by: crmpicco
2 Replies

9. UNIX for Advanced & Expert Users

Centos - prevent yum update from breaking package configurations

i recently run on a centos server and this replaced the current config files with a new one. this happened with but i think it can happen with other packages as well. please advise how such issues can be prevented from happening again. (4 Replies)
Discussion started by: coolatt
4 Replies

10. UNIX for Beginners Questions & Answers

Problem with cluster on centos 6.5

Hallo to everyone.From sometime i have problems with my asterisk pbx on cent os which is in corosync cluster mode with resource groups.The problem is for time the cluster just swap the active one with the other and the only messages in \var\log\messages is that bond0:link status defenitly down for... (0 Replies)
Discussion started by: evolintend
0 Replies
asadmin-deploy(1AS)						   User Commands					       asadmin-deploy(1AS)

NAME
asadmin-deploy, deploy - deploys the specifiedcomponent SYNOPSIS
deploy --user admin_user [--password admin_password] [--host localhost] [--port 4848] [--secure|-s] [--passwordfile filename] [--terse=false] [--echo=false] [--interactive] [--virtualservers virtual_servers] [--contextroot context_root] [--force=true] [--precom- pilejsp=false] [--verify=false] [--name component_name] [--upload=true] [--retrieve local_dirpath] [--dbvendorname dbvendorname] [--cre- atetables=true|false | --dropandcreatetables=true|false] [--uniquetablenames=true|false] [--deploymentplan deployment_plan] [--enabled=true] filepath Deploys an EJB, web, connector or application. If the component is already deployed or already exists, it is forcefully re-deployed if the --force option is set to true. The --createtables and --dropandcreatetables options are booleans and therefore can take the values of true or false. These options are only used during deployment of CMP beans that have not been mapped to a database (i.e., no sun-cmp-mappings.xml descriptor is provided in the module's META-INF directory). They are ignored otherwise. The --createtables option and --dropandcreatetables option are mutually exclusive; only one should be used. If drop and/or create tables fails, the deployment does not fail; a warning message is provided in the log file. This command is supported in remote mode only. OPTIONS
--user authorized domain application server administrative username. --password password to administer the domain application server. --host machine name where the domain application server is running. --port port number of the domain application server listening for administration requests. --secure if true, uses SSL/TLS to communicate with the domain application server. --passwordfile file containing the domain application server password. --terse indicates that any output data must be very concise, typically avoiding human-friendly sentences and favoring well- formatted data for consumption by a script. --echo setting to true will echo the command line statement on the standard output. --interactive prompts you for the required options that are not already specified. --virtualservers comma separated list of virtual server name. --contextroot valid only if the archive is a web module. It is ignored for other archive types; defaults to filename without extension. --force makes sure the component is forcefully (re)deployed even if the specified component has already been deployed or already exists. --precompilejsp by default is set to false which does not allow the JSP to pre-compile during deployment. Instead JSPs are compiled during runtime. --verify if set to true, the syntax and semantics of the deployment descriptor is verified. --name name of the deployable component. --upload when set to true, uploads the deployable file to the administration server. If the filepath of the deployable file is mounted to the server machine, or if the administration server is running locally, set the upload option to false. --retrieve retrieves the client stub JAR file from the server machine to the local directory. --dbvendorname name of database vendor being used. Default is the corresponding entry in the cmp-resource() element of the sun- ejb-jar.xml file. If not specified the default is SQL92. Thereby the DDL files to create and drop tables will be generated in SQL92 format. --createtables creates tables at deploy of an application with unmapped CMP beans. Default is the corresponding entry in the cmp- resource element of the sun-ejb-jar.xml file. If not specified, defaults to the entries specified in the deployment descriptors. --dropandcreatetables drops tables at redeploy of an already deployed application with unmapped CMP beans. If not specified, the tables will be dropped if the drop-tables-at-undeploy entry in the cmp-resource element of the sun-ejb-jar.xml file is set to true. The new tables are created if the create-tables-at-deploy entry in the cmp-resource element of the sun- ejb-jar.xml file is set to true. On redeploy the tables created by the previous deploy are dropped before creating the new tables. --uniquetablenames guarantees unique table names for all the beans and results in a hashcode added to the table names. This is useful if you have an application with case-sensitive bean names. --deploymentplan takes the deployment plan, which is a JAR containing Sun-specific descriptors, and deploys it. This should be passed along when deploying a pure EAR file. A pure EAR file is an EAR without Sun-specific descriptors. --enabled if set to true (default), allows user to access the application. If set to false, user will not be able to access the application. OPERANDS
filepath path to the deployable file on the local machine if the --upload option is set to true; otherwise the absolute path to the file on the server machine. Example 1: Deploying a J2EE application Deploy (install) the J2EE application packaged in the Cart.ear file. asadmin> deploy --user admin --password admin123 --host murph --port 4848 Cart.ear Command deploy executed successfully Example 2: Deploying a Web application with the default context root Deploy the Web application in the hello.war file at the hello context root. asadmin> deploy --user admin hello.war Command deploy executed successfully Example 3: Deploying an enterprise bean (EJB component) Deploy and enterprise bean with container-managed persistence (CMP) and create the database tables used by the bean. asadmin> deploy --user admin --createtables=true EmployeeEJB.jar Command deploy executed successfully Example 4: Deploying a connector module (resource adapter) Deploy a connector module packaged in a RAR file. asadmin> deploy --user admin jdbcra.rar Command deploy executed successfully EXIT STATUS
0 command executed successfully 1 error in executing the command asadmin-undeploy(1AS), asadmin-list-components(1AS) J2EE 1.4 SDK March 2004 asadmin-deploy(1AS)
All times are GMT -4. The time now is 12:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy