linux version -cant create temporary directory

Archives Forums/Linux Discussion/linux version -cant create temporary directory

slenkar(Posted 2009) [#1]
When I press ctrl-D in Ubuntu it says 'unable to create temporary directory'

Also, when I go into the bin directory with the terminal and type-in sudo bmk makemods

it says 'command not found'

I tried just typing in sudo bmk but it still says 'command not found'


EDIT- hmm for some reason you have to go to the blitzmax directory and do
sudo bin/bmk makemods

dont know why but it works


Brucey(Posted 2009) [#2]
How did you install BlitzMax?

If you unzip the .tar.gz into your home directory, then you shouldn't need to be a super user to do anything.


slenkar(Posted 2009) [#3]
i installed it into home/keith/desktop/blitzmax

Do you know the flags for makemods?

e.g. which one only compiles stuff that needs to be compiled


Brucey(Posted 2009) [#4]
Okay... *WHO* did you install it as?

If you need to use "sudo" to get anything to work, you didn't install it as yourself?

You *should* be able to do :

bin/bmk makemods

without 'sudo'.

The above command will compile only stuff that needs to be compiled. The first time you run it, everything needs to be compiled.

I'd like to point you to the documentation for bmk, but it's not very good. However, check out the Help in the IDE for some basic usage.


slenkar(Posted 2009) [#5]
i just copied the tar file from my USB stick to the desktop and then double-clicked it to unpack

I am signed in as the owner


Brucey(Posted 2009) [#6]
If you want to run "bmk" from anywhere, you'll need to add /home/keith/desktop/blitzmax/bin to your PATH - just as you would in Windows.

is user 'keith' the 'owner' ? - if they are not the same user, then you may have rights issues. Otherwise, things should work as expected.


slenkar(Posted 2009) [#7]
yes, maybe I will move the directory to 'home' and see what happens


D4NM4N(Posted 2009) [#8]
or you can chown it. or create a blitzmax group


markcw(Posted 2009) [#9]
or you can chown it. or create a blitzmax group

How do you do that then?


Brucey(Posted 2009) [#10]
chown -R user:group /path/to/file/or/folder

where user and group are the names you want to change to (both are optional). The '-R' param will recursively apply the rights change to sub-files and folders.
You may need to run it with sudo.

Creating a blitzmax group, you'd of course need to add your user account to it, and "chown" the folders to that group too. If you want to do group change only, leave out the "user" part - ":group"