Page 1 of 1

[Solved] need help to build package

Posted: 25 Jul 2011, 08:05
by Fistandantilus
Hi,

I have downloaded the following:

http://slackbuilds.org/slackbuilds/13.3 ... vnc.tar.gz

http://downloads.sourceforge.net/projec ... .12.tar.gz

1. I have extracted the sources to folder x11vnc-0.9.12
2. I have put the script files into the same folder

When I now run the build script x11vnc.SlackBuild I get:

"/bin/bash: ./x11vnc.SlackBuild: /bin/bash^M: bad interpreter: No such file or directory"

What am I doing wrong? :P

regards,
F.

Re: need help to build package

Posted: 25 Jul 2011, 08:45
by Hamza
Hello,

To fix the error with bad intrepreter.
Use this command

Code: Select all

fromdos ./x11vnc.SlackBuild
Here, you need to change the path of the file if you are not in the directory.

Topic Solved?

Re: need help to build package

Posted: 25 Jul 2011, 12:54
by Fistandantilus
It did not solve the issue but led me to the real problem - insufficient access rights.
Logging in as root solved it.

Thanks for your help!

Re: need help to build package

Posted: 25 Jul 2011, 13:00
by Hamza
For me,

Every SlackBuild need to be run from root account or similar account for some reasons:

1) Only the root account has an access to installpkg,removepkg,etc..
2) Only the root account has the perm's to edit or view some files
3) Only the roor account has any restrictions about the access.

Be Aware, If you are using the root account, You must to know what you are doing. This account can break the system!

Cheers!

Re: need help to build package

Posted: 25 Jul 2011, 13:03
by brokenman
I'll just add that i never unpack the source file. The build script will unpack this into your /tmp folder. Just leave the tarball in the same directory as the build script.