[Solved] need help to build package

Post here if you are a new Porteus member and you're looking for some help.
Fistandantilus
White ninja
White ninja
Posts: 14
Joined: 20 Jul 2011, 18:31
Location: Germany

[Solved] need help to build package

Post#1 by Fistandantilus » 25 Jul 2011, 08:05

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.
Last edited by Fistandantilus on 04 Aug 2011, 08:42, edited 1 time in total.

User avatar
Hamza
Warlord
Warlord
Posts: 1908
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: need help to build package

Post#2 by Hamza » 25 Jul 2011, 08:45

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?
NjVFQzY2Rg==

Fistandantilus
White ninja
White ninja
Posts: 14
Joined: 20 Jul 2011, 18:31
Location: Germany

Re: need help to build package

Post#3 by Fistandantilus » 25 Jul 2011, 12:54

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!

User avatar
Hamza
Warlord
Warlord
Posts: 1908
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: need help to build package

Post#4 by Hamza » 25 Jul 2011, 13:00

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!
NjVFQzY2Rg==

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: need help to build package

Post#5 by brokenman » 25 Jul 2011, 13:03

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.
How do i become super user?
Wear your underpants on the outside and put on a cape.

Post Reply