mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Linux

Reply
 
Thread Tools
Old 2015-11-23, 19:52   #23
wildrabbitt
 
Jul 2014

3·149 Posts
Default

Quote:
What does "uname -a" give when running tiny core?
Linux box 3.16.6-tinycore64 #777 SMP Thu Oct 16 10.:21:00 UTC 2014 x86_64 GNU/Linux

Quote:
What does "ls -l mprime" give?What does "ls -l mprime" give?
-rwxr-xr-x 1 root root 35888675 Nov 22 2015 mprime


Quote:
I'll now ask again, what does "pwd" say to you?

/mnt/sdb1/mprime_folder
wildrabbitt is offline   Reply With Quote
Old 2015-11-23, 19:54   #24
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

72338 Posts
Default

Doesn't "locate" require a indexing to occur -- admittedly this would not take long for tiny core if it has such a feature.

Better might be "find ~/ -name mprime".

wildrabbitt knows where mprime is. If he "cd" (change directory) to the right directory and runs "./mprime -m" that should do it. (Is "-m" defunct?)

Last fiddled with by paulunderwood on 2015-11-23 at 19:59
paulunderwood is offline   Reply With Quote
Old 2015-11-23, 20:03   #25
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

100110000000112 Posts
Default

Quote:
Originally Posted by paulunderwood View Post
Doesn't "locate" require a indexing to occur -- admittedly this would not take long for tiny core if it has such a feature.)
Yes. Locate requires a file-system wide index.

Quote:
Originally Posted by paulunderwood View Post
Better might be "find ~/ -name mprime".
Possibly. Or perhaps "find / -name mprime" of the mprime directory was not in the user's home directory.

Quote:
Originally Posted by paulunderwood View Post
Woldrabbit knows where mprime is. If he "cd" (change directory) to the right directory and runs "./mprime -m" that should do it. (Is "-m" defunct?)
His name is "Wildrabbit", not "Woldrabbit".

But, yes, generally you are correct.
chalsall is offline   Reply With Quote
Old 2015-11-23, 20:46   #26
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

381710 Posts
Default

Attempting to be more helpful, I have tried/discovered the following, of which you more learned can say, "Of course!"

If I copy mprime to a USB drive, I am not allowed to run it, because it is not executable. Also, I am not "allowed" to make it executable, presumably due to me not "owning" the USB drive. I also could not change the permissions or run it as root.

Edit: I did, however find it using the "find / -name mprime" command, however, only after finding it this way as root. My initial try as 'user' did not locate it on the USB drive. Subsequent tries work.

Last fiddled with by EdH on 2015-11-23 at 20:48
EdH is offline   Reply With Quote
Old 2015-11-23, 21:16   #27
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

250516 Posts
Default

Quote:
Originally Posted by wildrabbitt View Post
When I type

root @ william-GA-78LMT-USB3:/home/william/Downloads/p95v287.linux64# ...
Just in case, even though this is not a part of your current problem:
this above (root @) in itself will breed a host of other problems, so you better abandon this practice early in your learning curve. Don't log in as root (obviously unless you need that for indeed root activities). Don't leave root shells open. Best practice is to sudo, for most everyday patches and tweaks. It is best to stick to this habit early, like, you know, flossing ...or not texting-and-driving.
Batalov is offline   Reply With Quote
Old 2015-11-23, 21:27   #28
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

3,739 Posts
Default

To add to Batalov's run-as-william advice: you can change the ownership of mprime as root with:

Code:
chown william:william mprime
paulunderwood is offline   Reply With Quote
Old 2015-11-23, 21:33   #29
wildrabbitt
 
Jul 2014

3×149 Posts
Default

Thanks Paul. The thing is. My username was william on the ubuntu box I used to copy the mprime files to the stick on.

On tinycore64 I don't have a username
wildrabbitt is offline   Reply With Quote
Old 2015-11-23, 21:38   #30
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

3,739 Posts
Default

You might need to run "adduser william"
paulunderwood is offline   Reply With Quote
Old 2015-11-23, 23:03   #31
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

3×29×83 Posts
Default

Quote:
Originally Posted by wildrabbitt View Post
When I run ./mprime -h I get the same error as before.

When I run file mprime

I get

sh: file: not found
Quote:
Originally Posted by wildrabbitt View Post
When I type file ./mprime

I gtet

sh: file: not found

so it looks like I haven't got the command file to use for some reason.
This means there is no `file` command on your system. (How has no one noticed this? Aren't there supposed to be experts in this thread? )

As for why `./mprime` fails, I have no idea.

To give us a feel for what the operating system does come with, try the following and post the outputs:

`which file` (this one should have no output I believe)
`echo $PATH`

Last fiddled with by Dubslow on 2015-11-23 at 23:03
Dubslow is offline   Reply With Quote
Old 2015-11-23, 23:15   #32
wildrabbitt
 
Jul 2014

1BF16 Posts
Default

thanks

no ouput for

'which file'

echo $PATH

produces

/home/tc/.local/bin:/usr/local/sbin:/usr/local/bin:/apps/bin:/usr/sbin:/usr/bin:/sbin:/bin
wildrabbitt is offline   Reply With Quote
Old 2015-11-23, 23:17   #33
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

160658 Posts
Default

What about "echo $SHELL" ?

What about "/mnt/sdb1/mprime_folder/mprime" ? As chalsall says that should be equivalent to "./mprime" but I want to be sure...
Dubslow is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Posting log files or other text files Xyzzy Forum Feedback 3 2018-12-30 19:37
Is copying my complete "p95v285" folder to my new pc enough to continue? RienS Information & Answers 1 2014-11-14 21:47
Ubuntu storm5510 Linux 24 2013-11-08 20:59
Ubuntu 9.10 henryzz Linux 11 2010-01-29 21:31
Copying Latex No Longer Works? jinydu Information & Answers 2 2009-03-16 02:39

All times are UTC. The time now is 08:31.


Sat Jul 17 08:31:33 UTC 2021 up 50 days, 6:18, 1 user, load averages: 1.49, 1.61, 1.54

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.