PDA

View Full Version : libstdc++ available for wl500g?



ikerstges
23-02-2006, 14:09
I would like to install python on the wl500g, but it depends on libstdc++

libstdc++ is not in the ipkg list of available packages....

sodb
23-02-2006, 20:12
add
src bcan http://bcan.burngreave.net/bcanopenwrt/packages to your ipkg.conf file and run ipkg update and install with ipkg install libstdc++. I used it to install iperf. Must admit, I installed it on openwrt, but should work on Oleg as well.

ikerstges
24-02-2006, 09:27
Hi sodb, that's great! I'm willing to give it a try!

When I run this install, I get following:


Installing libstdc++ (5.0.5) to root...
Downloading http://bcan.burngreave.net/bcanopenwrt/packages/libstdc++_5.0.5_mipsel.ipk
ipkg: Cannot create symlink from ./lib/libstdc++.so to 'libstdc++.so.5': Read-only file system
ipkg: /lib/libgcc_s.so.1: Read-only file system
ipkg: Cannot create symlink from ./lib/libstdc++.so.5 to 'libstdc++.so.5.0.5': Read-only file system
ipkg: Cannot create symlink from ./lib/libgcc_s.so to 'libgcc_s.so.1': Read-only file system
ipkg: /lib/libstdc++.so.5.0.5: Read-only file system
Configuring libstdc++
Successfully terminated.


So, several items fail to run and unfortunately, I don't have any linux skills at all.. Can somebodey help me in how to get the libstdc++ install properly, please?

Any tips, hints are welcome here!?

ikerstges
24-02-2006, 10:32
I've tried to run:
ipkg -d /opt/lib install libstdc++

My wl500g response:
ERROR: Unknown dest name: `/opt/lib'

Any ideas, suggestions or help will be appreciated?!!

qczek
24-02-2006, 13:10
Hello,
Simple add foloowing line to your ipkg.conf file



dest optlib /opt/lib/


and after that run



ipkg -dest optlib install libstdc++


regards
Krzysiek

qczek
24-02-2006, 13:40
it's me again

i think you have to use different location and make following entry into your ipkg.conf file



dest opt /opt/


and user opt instead of optlib

I instaled libstdc but i have still problems with man

libstdc++ seems to be installed


find / -name '*libstdc*'
/opt/lib/libstdc++.so
/opt/lib/libstdc++.so.5
/opt/lib/libstdc++.so.5.0.5
/opt/opt/lib/ipkg/info/libstdc++.control
/opt/opt/lib/ipkg/info/libstdc++.list


but man (does segmentation fault)


man find
Segmentation fault
(END)


i find that its not man but groff but i dont know what to do :(
regards
Krzysiek

ikerstges
24-02-2006, 18:20
Hi qczek,

With the instruchtions of you previous post, I was able to install libstdc++!! That's great! If I check my router now, it says:

Package libstdc++ (5.0.5) installed in opt is up to date.

Thanks!

oleo
25-02-2006, 01:47
I've finally got some result with this libsctdc++ problems! The solution is to replace libstdc++ with libuclibc++. And now I have running groff and man on my wl500g. I cannot post groff ipk here due to 1MB size limit. So you have to wait for package feeds!

libuClibc++ is not commited yet as there is no RTTI and EH support enabled for now. Also toolcain should is patched. But this gives us a new hope for many C++ packages on wl500g!

ikerstges
25-02-2006, 12:20
ThumbsUp oleo! I'm especially intrigued in finding a good solution to the brute-force login attacks on my wl500g (syslog shows attacks at almost every second for a full day!).. For that, I would be particularly interested into using denyhosts (http://denyhosts.sourceforge.net/) (python package).

I have python setup now, but denyhosts gives some error. I will post about that in a separate post..

Keep up that good work!

oleo
26-02-2006, 09:07
I have python setup now, but denyhosts gives some error. I will post about that in a separate post..

Do you mean that you have running python? I've tried python on wl500gx with libstdc++ and it gives me
$ python
/opt/bin/python: 1: Syntax error: "(" unexpected

ikerstges
26-02-2006, 10:22
oleo: I confirm, I have the same error.. :(

ikerstges
28-02-2006, 15:47
This needs much more knowledge; I have to pass.. Damn!

I have tried many different ways to get python available on my wl500g, so I can have python scripts running.

Information about the error:

$ python
/opt/bin/python: 1: Syntax error: "(" unexpected
does not show in http://www.python.org/doc/ and a search in this forum on "python" only produces 6 hits, (3 of those hits because of me, posting in these threads about python).

Unfortunately I got completely stuck on now....

oleo
28-02-2006, 18:36
I have python running on wl500g. But this is in alpha stage. It is built on top of libuClibc++. We demoted all python packages until this bug is resolved. Brian Zhou pushed this package a step forward on cross compile. But now I have core dump on some functionality. It looks like libreadline or openssl problem. But interpreting simile package works for now :)
See for example:

python -v a.py see http://pastebin.ca/43513
For rdiff-backup with -v see http://pastebin.ca/43514

If you are willing to help out WE can make this baby run. Now I added exceptions handling to uClibc++ and many C++ dependent packages started to run automagically (libsigc++, mysql, unrar, groff, ctorrent, ...).

libuClibc++ is readily in CVS. Just packges need to be bumped.

Breakout this week maybe :) Follow http://cvs.sourceforge.net/viewcvs.py/nslu/unslung/make/python.mk for changelog.

oleo
28-02-2006, 21:23
Update: Without readline and openssl python now works OK. :)
Except of zlib. It seems like problem with dynamic linking of optional libraries. But this can hopefully be solved.

ikerstges
28-02-2006, 22:32
Hi oleo,

I can't help you with this.. Hey, I would even push this myself, if I only knew how to get the job done! I'm sorry, but until 3 weeks ago, I never typed any command in linux; I'm totally windowz till now.. :rolleyes:

But right now, I'm learning about 'su root', so there's still hope! AHaahh.. :cool:

I will most definitely follow your progress to get this up and running (changelog). And meanwhile, I will try to contribute where and when I can on many different other subjects (hey, I even posted a how-to in the tutorials section of this forum already)

oleo
07-03-2006, 14:43
Starting with new uClibc++ library instead of stdlibc++ many packages from optware (http://ipkg.nslu2-linux.org/feeds/unslung/wl500g/) are now working. I suggest that you remove libstdc++ shared library and install libuclibc++.

Note that libstdc++ will still get installed, but this is dummy package for transition to libuclibc++.

gothard
09-01-2007, 17:25
Hi,
It was fews days, i tried to add libstdc++ on my router,i follow oleg's way but always the same error.
admin@(none) root]$ ipkg.sh update
mkdir: Cannot create directory `//opt/tmp/': Read-only file system
I don't understand why we need create a external partition to add this librairie!!!:(
Thks for your answer
GG

techie
10-07-2009, 09:43
add
src bcan http://bcan.burngreave.net/bcanopenwrt/packages to your ipkg.conf file and run ipkg update and install with ipkg install libstdc++. I used it to install iperf. Must admit, I installed it on openwrt, but should work on Oleg as well.

Hi sodb,
where can I get this binary package now. I am using wl500gx with openwrt whiterussian 2.4.30. Thanks a lot for help.
David