*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am working on a Mac - as I understand it's basically a BSD beneath it - and although I know a little about Linux, I know nothing about BSD.
What I am trying to accomplish is to compile libcurl from source. So I download, I ./configure it and I make it. Then when I enter "make install" it says like "Permission denied" on the file "install-sh". Which is quite logical as the rights are 0644...
So what I tried to do is:
chmod 755 install-sh <- requires root
chmod u+x install-sh <- requires root
chmod +x install-sh <- requires root
The user owning the file is 'steven' (the user I am working under), the group is '5584' (whatever that is), but I know I untarred the libcurl sources into that folder, so I guess that's something like the 'users' group under Linux.
What I want to know is how I can change the rights of this file so I can "make install" without being root.
(btw, the prefix is in my own directory, so no need to be root to install it to the system).
Well, I use "port" (macports), so I guess that's about the same.
And the "make install" does NOT need always root privileges... It only needs that if you want to install into the system. And that's exactly not what I want to do (as pointed out before).
As for this problem... I don't know why, but the GROUP was 'steven', the user was 755 (dunno, maybe I did a chown instead of a chmod command before?)
did you unpack the tarball(or just download) as root? This can have problems, but i can't see why it would. This is quite out of my league in this sense, the only thing i can think of is either starting again from scratch, or find a binary of lib curl
Distribution: BeOS, BSD, Caldera, CTOS, Debian, LFS, Mac, Mandrake, Red Hat, Slackware, Solaris, SuSE
Posts: 1,761
Rep:
Quote:
The user owning the file is 'steven' (the user I am working under), the group is '5584' ... I don't know why, but the GROUP was 'steven', the user was 755.
The numbers are the GID (Group ID) and UID (User ID) respectively. The reason they are numbers when you did a file list is because the numbers don't correspond to an actual UID or GID. The UID's are typically listed in /etc/passwd and the GID's are in /etc/group.
So I download, I ./configure it and I make it. Then when I enter "make install" it says like "Permission denied" on the file "install-sh". Which is quite logical as the rights are 0644...
I presume you downloaded curl-7.16.2.tar.gz file? I downloaded that file, untared it, and was able to install it in my $HOME directory without problem. The install-sh already had the executable bit set so I didn't have to do a chmod.
Code:
$ cd $HOME
$ tar xzf curl-7.16.2.tar.gz
$ cd curl-7.16.2
$ ./configure --prefix=$HOME/curl
$ make
$ make install
Quote:
Then when I enter "make install" it says like "Permission denied" on the file "install-sh".
Once you have the correct UID and GID set on the curl directory list, hopefully you won't get the permission denied error.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.