I am a beginning to use vocore. After I install the openwrt. I am trying to write a simple helloworld program and run the compile command
`find . -name mipsel-openwrt-linux-gcc` -g main.c -o hello
after scp the hello file to vocore /tmp
scp ./hello root@192.168.11.100:/tmp/
then try to run the program:
root@OpenWrt:~# ./hello
sh: ./hello: not found
root@OpenWrt:~#
root@OpenWrt:/tmp# . ./hello
sh: ./hello: line 1: syntax error: unexpected "&" (expecting ")")
root@OpenWrt:/tmp#
please help me to know what's wrong? I follow the instruction from vocore forum. I believe the procedure is correct
vocore beginner helloworld
- pkwok
- Posts: 1
- Joined: Wed May 25, 2016 1:52 pm
- Vonger
- Posts: 897
- Joined: Sun Oct 19, 2014 6:00 am
Re: vocore beginner helloworld
I think the lib changed, please try ldd ./hello, check if any library is missed.
- noblepepper
- Posts: 240
- Joined: Sat Nov 29, 2014 3:22 pm
Re: vocore beginner helloworld
If you are just getting started with openwrt this may help.
- alexT4I
- Posts: 1
- Joined: Wed Jun 08, 2016 3:29 pm
Re: vocore beginner helloworld
Hello,
I'm using ubuntu 16.04 LTS running on a virtual machine in VMWare.
I'm having a similar issue. I'm following this tutorial: http://vonger.cn/?p=1585
When I do the very last step, I get:
I ran ls from the /tmp directory and I see 'hello' there in the listing, in green. I'm very inexperienced with Linux so help is appreciated!
Thanks.
I'm using ubuntu 16.04 LTS running on a virtual machine in VMWare.
I'm having a similar issue. I'm following this tutorial: http://vonger.cn/?p=1585
When I do the very last step, I get:
-ash: ./hello: not found
I ran ls from the /tmp directory and I see 'hello' there in the listing, in green. I'm very inexperienced with Linux so help is appreciated!
Thanks.
- Vonger
- Posts: 897
- Joined: Sun Oct 19, 2014 6:00 am
Re: vocore beginner helloworld
Hi, try to ldd ./hello, check what it returned.
I think it is some library missed.
I think it is some library missed.
5 posts
Page 1 of 1
Who is online
Users browsing this forum: No registered users and 5 guests