ID |
Date |
Icon |
Author |
Author Email |
Category |
OS |
ELOG Version |
Subject |
1866
|
Tue Jul 4 07:04:19 2006 |
| Steve Jones | steve.jones@freescale.com | Question | Mac OSX | 2.6.1 | Re: Canīt run command "make" in OSX |
Mats McLund wrote: | Hello.
I think to test Elog in Mac G5 with OSX 10.4.6.
In the manual is following installationtext:
"Installation from the tarball:
Download the latest elog-x.x.x.tar.gz package.
Expand the compressed TAR file with tar -xzvf elog-x.x.x.tar.gz. This creates a subdirectory elog-x.x.x where x.x.x is the version number. In that directory execute make, which creates the executables elogd, elog and elconv."
The problem is when i try to run the command "make" in ~/elog-2.6.1 subdirectory. I get following message:
-bash: make: command not found
Now, Im not an "UNIX-hacker" so I will be glad if anyone maybe can help me?
Best regardīs
Mats McLund |
Quote: | Typically one would install the Gnu compiler series and with that come 'gmake'. Barring that, and not knowing anything about OSx, if OSx comes with its own compiler series then make might be somewhere on the system but not in your path. Go to http://gcc.gnu.org/ and see if you an find a pre-built version of gcc -- all I found mentioned "darwin". Perhaps Apple has something in the way of a development colleciton? |
|
1867
|
Tue Jul 4 08:46:15 2006 |
| Mats McLund | mats.lund@nassjotryckeriet.se | Question | Mac OSX | 2.6.1 | Re: Canīt run command "make" in OSX |
Steve Jones wrote: |
Mats McLund wrote: | Hello.
I think to test Elog in Mac G5 with OSX 10.4.6.
In the manual is following installationtext:
"Installation from the tarball:
Download the latest elog-x.x.x.tar.gz package.
Expand the compressed TAR file with tar -xzvf elog-x.x.x.tar.gz. This creates a subdirectory elog-x.x.x where x.x.x is the version number. In that directory execute make, which creates the executables elogd, elog and elconv."
The problem is when i try to run the command "make" in ~/elog-2.6.1 subdirectory. I get following message:
-bash: make: command not found
Now, Im not an "UNIX-hacker" so I will be glad if anyone maybe can help me?
Best regardīs
Mats McLund |
Quote: | Typically one would install the Gnu compiler series and with that come 'gmake'. Barring that, and not knowing anything about OSx, if OSx comes with its own compiler series then make might be somewhere on the system but not in your path. Go to http://gcc.gnu.org/ and see if you an find a pre-built version of gcc -- all I found mentioned "darwin". Perhaps Apple has something in the way of a development colleciton? |
|
Hi Steve.
I have now found a compiler on Apples Developer Tools --- they came as a CD from Apple with my Mac G5.
Great thanks to mr Thomas R. Vilberg for that tips!
I have now the "make"-commands to work as you see.
McLunds-G5:~/elog-2.6.1 admin$ ls -al
total 3984
drwxr-xr-x 21 1093 110 714 Jun 30 14:55 .
drwxrwxr-x 45 admin staff 1530 Jun 30 14:52 ..
-rwxr-xr-x 1 1093 110 17982 Oct 7 2005 COPYING
-rw-r--r-- 1 1093 110 3702 Mar 6 20:32 Makefile
-rw-r--r-- 1 1093 110 327 Oct 7 2005 README
drwxr-xr-x 11 1093 110 374 Apr 1 15:29 contrib
drwxr-xr-x 19 1093 110 646 Apr 1 15:29 doc
-rwxr-xr-x 1 root 110 35020 Jun 30 14:55 elconv
-rwxr-xr-x 1 root 110 43152 Jun 30 14:53 elog
-rwxr-xr-x 1 root 110 1806608 Jun 30 14:54 elogd
-rwxr-xr-x 1 1093 110 412 Mar 28 17:19 elogd.cfg
-rwxr-xr-x 1 1093 110 1256 Jan 19 09:19 elogd.init_template
drwxr-xr-x 3 1093 110 102 Apr 1 15:29 logbooks
drwxr-xr-x 5 1093 110 170 Apr 1 15:29 man
-rw-r--r-- 1 root 110 56868 Jun 30 14:53 mxml.o
-rw-r--r-- 1 root 110 46844 Jun 30 14:53 regex.o
drwxr-xr-x 31 1093 110 1054 Apr 1 15:29 resources
drwxr-xr-x 3 1093 110 102 Apr 1 15:29 scripts
drwxr-xr-x 8 1093 110 272 Apr 1 15:29 src
-rw-r--r-- 1 root 110 1672 Jun 30 14:53 strlcpy.o
drwxr-xr-x 3 1093 110 102 Apr 1 15:29 themes
But....
When I try to run "elogd -p 8080" or just "elogd" after installation I get message "-bash: elogd: command not found"
You maybe have some other trick to start elogd?
Best regards and thanks for all help.
Mats McLund |
1868
|
Tue Jul 4 08:52:47 2006 |
| Gerald Ebberink | g.h.p.ebberink@nclr.nl | Question | Mac OSX | 2.6.1 | Re: Canīt run command "make" in OSX |
Mats McLund wrote: |
But....
When I try to run "elogd -p 8080" or just "elogd" after installation I get message "-bash: elogd: command not found"
You maybe have some other trick to start elogd?
Best regards and thanks for all help.
Mats McLund |
Mats,
What you might want to try is the following (it works for linux which has bash)
in the elog directory run "./elogd -p 8080" you see the dot slash in there that means it should run the file in the local directory.
of that works you could try run "make install" in which case it will be installed in the directory where it can be found as a command.
these are just my 2 cents. |
1869
|
Tue Jul 4 13:07:53 2006 |
| Mats McLund | mats.lund@nassjotryckeriet.se | Question | Mac OSX | 2.6.1 | Re: Canīt run command "make" in OSX |
Gerald Ebberink wrote: |
Mats McLund wrote: |
But....
When I try to run "elogd -p 8080" or just "elogd" after installation I get message "-bash: elogd: command not found"
You maybe have some other trick to start elogd?
Best regards and thanks for all help.
Mats McLund |
Mats,
What you might want to try is the following (it works for linux which has bash)
in the elog directory run "./elogd -p 8080" you see the dot slash in there that means it should run the file in the local directory.
of that works you could try run "make install" in which case it will be installed in the directory where it can be found as a command.
these are just my 2 cents. |
Hello Gerald.
Tank you for your help!
But.....
When I run ./elogd -p 8080 I get "Bus error" message.
Best regards
Mats McLund |
1872
|
Mon Jul 10 11:14:12 2006 |
| Gerald Ebberink | g.h.p.ebberink@nclr.nl | Question | Mac OSX | 2.6.1 | Re: Canīt run command "make" in OSX |
Mats McLund wrote: |
Hello Gerald.
Tank you for your help!
But.....
When I run ./elogd -p 8080 I get "Bus error" message.
Best regards
Mats McLund |
Hello Mats,
This sounds like something I have not encountered, so I think you'll need to wait for Mr. Ritt to solve this. |
1873
|
Mon Jul 10 11:15:25 2006 |
| Stefan Ritt | stefan.ritt@psi.ch | Question | Mac OSX | 2.6.1 | Re: Canīt run command "make" in OSX |
Gerald Ebberink wrote: | This sounds like something I have not encountered, so I think you'll need to wait for Mr. Ritt to solve this. |
No, I can't solve this becaue I have no MAC.
Sorry,
Stefan |
1881
|
Mon Jul 17 13:20:07 2006 |
| Gerald Ebberink | g.h.p.ebberink@nclr.nl | Question | Linux | 2.6.1 | Re: restrict access |
Stefan Ritt wrote: |
Gerald Ebberink wrote: | As you can see, I have implemented a temporary fix in the way of allowing only certain hosts access. But where does this Internal error come from. |
I only can identify this error if you send me your current ("de-sensified") elogd.cfg. |
I have just installed the svn version of elog, and the problem has been fixed.
Thank you very much! |
1917
|
Tue Aug 29 15:16:31 2006 |
| Giorgio Croci Candiani | g.crocic@libero.it | Bug report | Linux | Windows | 2.6.1 | Re: Access to global configuration in v2.6.1 |
Hi,
after a long time, I thought I could try to investigate the code some further,
and maybe I found some hint.
The page where I expected the options to show was (probably) the one generated by this function:
void show_admin_page(LOGBOOK * lbs, char *top_group)
Inside, it, the buttons are generated by following code snippets:
(elogd.c:10443)
if (is_admin_user_global(getparam("unm"))) {
sprintf(str, loc("Change %s"), "[global]");
rsprintf("<input type=submit name=cmd value=\"%s\">\n", str);
}
(elogd.c:10461)
if (is_admin_user("global", getparam("unm"))) {
rsprintf("<input type=submit name=cmd value=\"%s\">\n", loc("Delete this logbook"));
rsprintf("<input type=submit name=cmd value=\"%s\">\n", loc("Rename this logbook"));
rsprintf("<input type=submit name=cmd value=\"%s\">\n", loc("Create new logbook"));
}
The functions called to validate the user are following:
(elogd.c:21298)
BOOL is_admin_user(char *logbook, char *user):
//...
if (user == NULL)
return FALSE;
(elogd.c:21324)
BOOL is_admin_user_global(char *user)
{
//...
if (user == NULL)
return FALSE;
Since I assume that I'm probably in the "userless" case (no users are defined in the configuration,
and no usernames are set when launching elog either), I would understand that this causes the options for
global config editing etc etc not to be shown on the admin page.
In my opinion (and given that my interpretation of the code flow isn't wrong), the "null"
user should be indeed considered admin, at least as long as no user management is defined whatsoever.
(If I got it right, if user==NULL, but a password file exists, user management is applied,
thus we're in the case of anonymous user which is correctly not admin).
Again, I might be wrong, but I would be curious to hear an opinion from you about this issue.
Thanks again for your attention.
GiorgioCC |