Please Help Getting mad! Installing wxwidgets... need to add a path to ldconfig...??
I need to:
Add /opt/wx/2.8/bin to the PATH (if you're shell is bash then edit /etc/profile or ~/.bash_profile) add /opt/wx/2.8/lib to /etc/ld.so.conf (nano /etc/ld.so.conf) then run: from tutorial: http://vunh.blogspot.com/2009/05/cod...in-centos.html if i go look inside of the folder /etc/ld.so.conf.d/ i find one file qt-i386.conf with the contents /usr/lib/qt-3.3/lib From what I understand i need to have another file in there named ? that has the string /opt/wx/2.8/lib A. How do I create a file in here? B. What do i name this file? C. do i need to tell the ldconfig command about the new file? Someone please help!? I have been trying to get this to work all day and I am at the end of my rope! Using CentOS 5.4 Trying to install wxwidgets 2.8 |
Hi,
Just add /opt/wx/2.8/lib in /etc/ld.so.conf before any include directives and run ldconfig. Don't bother with the /etc/ld.so.conf.d/*.conf files. Regards |
Quote:
Code:
[eaicurtis@localhost ~]$ su - Code:
/opt/wx/2.8/lib |
Quote:
include ld.so.conf.d/*.conf [root@localhost Desktop]# dir /opt/wx/2.8/lib libwx_baseu-2.8.so libwx_gtk2u_core-2.8.so.0.4.0 libwx_baseu-2.8.so.0 libwx_gtk2u_html-2.8.so libwx_baseu-2.8.so.0.4.0 libwx_gtk2u_html-2.8.so.0 libwx_baseu_net-2.8.so libwx_gtk2u_html-2.8.so.0.4.0 libwx_baseu_net-2.8.so.0 libwx_gtk2u_media-2.8.so libwx_baseu_net-2.8.so.0.4.0 libwx_gtk2u_media-2.8.so.0 libwx_baseu_xml-2.8.so libwx_gtk2u_media-2.8.so.0.4.0 libwx_baseu_xml-2.8.so.0 libwx_gtk2u_qa-2.8.so libwx_baseu_xml-2.8.so.0.4.0 libwx_gtk2u_qa-2.8.so.0 libwx_gtk2u_adv-2.8.so libwx_gtk2u_qa-2.8.so.0.4.0 libwx_gtk2u_adv-2.8.so.0 libwx_gtk2u_xrc-2.8.so libwx_gtk2u_adv-2.8.so.0.4.0 libwx_gtk2u_xrc-2.8.so.0 libwx_gtk2u_core-2.8.so libwx_gtk2u_xrc-2.8.so.0.4.0 libwx_gtk2u_core-2.8.so.0 wx |
Quote:
Put /opt/wx/2.8/bin first in the PATH: Code:
export PATH=/opt/wx/2.8/bin:$PATH Code:
source ~/.bash_profile |
Quote:
so i did the lines you just told me to do then redid a ldconfig then checked its location and it still says the same thing |
Have you changed your PATH?
What gives: Code:
echo $PATH |
Quote:
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin |
So /opt/wx/2.8/bin is not in root's PATH. You have to edit also root's .bash_profile to add /opt/wx/2.8/bin.
If you want all users have /opt/wx/2.8/bin in their PATH, then edit /etc/profile |
Quote:
i opened this file you speak of... and this is what i am presented with Code:
??? you want me to do what? |
I don't use Centos but from what I can see in the file you've posted, you can add your PATH statement, just before the export PATH... line:
Code:
... |
.............
ok .... so i have a /etc/profile document that has Code:
# /etc/profile i have a etc/ld.so.conf file that has Code:
/opt/wx/2.8 I get Code:
checking for wx-config... /usr/local/bin/wx-config /opt/wx/2.8 i have the files i want and at /usr/local/bin i have a 2.6 version we seem to have got nowhere |
1. Did you logout and login back again (or run source /etc/profile) after editing /etc/profile? I guess you didn't!!
Run again echo $PATH, to verify that you have the correct PATH 2. Quote:
Code:
/opt/wx/2.8/lib |
well we are getting somewhere
returned by ./configure Code:
************************************************* Code:
/opt/wx/2.8/include/wx-2.8/wx/strconv.h:89: note: candidates are: const wxCharBuffer wxMBConv::cWC2MB(const wchar_t*) const any ideas?? this happens when i call make.. |
more detail
Code:
[root@localhost trunk]# make |
|
|
wxGTK-2.8.10 will compile with no errors on CentOS 5.x .
Or you can build it from this source package http://packages.sw.be/wxGTK/wxGTK-2.8.10-1.rf.src.rpm .. with rpmbuild -bb wxgtk.spec Or just enable the rpmforge.repo temporarily : https://rpmrepo.org/RPMforge/Using .. and do # yum install wxGTK-devel .. which provides wxGTK + wxGTK-devel, version 2.8.10 ..... |
Quote:
gets me in the same state |
|
If you just need a package :
http://mirror.corbina.net/pub/Linux/epel/5Server/ codeblocks : dated 01-Jul-2009 Compiling codeblocks should be possible for you. ( I have no problems.) Building rpm packages : Too many differences between what's available / created .. and what the spec file says. ..... |
Quote:
So i uninstalled CentOS and I am going to give it another go I have CentOS 5.4 (which iswhat you told me to get in previous thread) I started it up and went to Add/Remove Software and Clicked Development->Development Tools I am downloading this package I am then going to get wxwidgets I will get it using yum and the rpmforge site you gave me once I am done with this I will try the link you just provided me Does this sound like a good solution? |
Quote:
37 hours later i will never understand you linux people this would have been a double click in windows, and a drag to desktop in mac |
Even easier in Linux :
Package Manager = Add / Remove Software : Click 'codeblocks' , and codeblocks gets installed ! ..... Codeblocks is in the EPEL repo https://fedoraproject.org/wiki/EPEL/FAQ#howtouse ..... |
All times are GMT -5. The time now is 07:09 AM. |