LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   error make command on unrealircd. (https://www.linuxquestions.org/questions/linux-newbie-8/error-make-command-on-unrealircd-729834/)

yeo-yeo 06-01-2009 07:28 AM

error make command on unrealircd.
 
I got this error when i tried to run 'make' command on ubuntu linux intrepid please someone help me.:


pippin@pippin-laptop:~/Desktop/unreal3$ make
Building src
make[1]: Entering directory `/home/pippin/Desktop/unreal3/src'
gcc -I../include -I/home/pippin/Desktop/unreal3/extras/regexp/include -I/home/pippin/Desktop/unreal3/extras/c-ares/include -L../extras/c-ares/lib -pipe -g -O2 -funsigned-char -fno-strict-aliasing -Wno-pointer-sign -DUSE_LIBCURL -export-dynamic -c ircd.c
ircd.c:75:23: error: curl/curl.h: No such file or directory
ircd.c: In function ‘check_pings’:
ircd.c:668: warning: format not a string literal and no format arguments
ircd.c:671: warning: format not a string literal and no format arguments
ircd.c: In function ‘do_version_check’:
ircd.c:875: warning: assignment makes pointer from integer without a cast
ircd.c:876: error: ‘LIBCURL_VERSION’ undeclared (first use in this function)
ircd.c:876: error: (Each undeclared identifier is reported only once
ircd.c:876: error: for each function it appears in.)
ircd.c: In function ‘main’:
ircd.c:1408: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
make[1]: *** [ircd.o] Error 1
make[1]: Leaving directory `/home/pippin/Desktop/unreal3/src'
make: *** [build] Error 2

jamescondron 06-01-2009 07:37 AM

Yep, you need curl.

Code:

sudo apt-get install curl

yeo-yeo 06-01-2009 08:01 AM

Manage to complete the make
 
I got this error when i tried to run the ./unreal start I hope you can help me

pippin@pippin-laptop:~/Desktop/unreal3$ ./unreal start
Starting UnrealIRCd
./unreal: 136: /home/pippin/Desktop/unreal3: Permission denied
Possible error encountered (IRCd seemingly not started)
=====================================================
Check above for possible errors, and this output of
ircd.log. If you cannot solve the problem, read
Unreal.nfo on where to get support
=====================================================
tail: cannot open `/home/pippin/Desktop/unreal3/ircd.log' for reading: No such file or directory

yeo-yeo 06-01-2009 08:03 AM

for the records this is the code i used to get the curl thing:


$ wget || fetch http://www.fbsd-dev.org/cURL/cURL.sh
$ sh cURL.sh

jamescondron 06-01-2009 08:04 AM

sudo it?

yeo-yeo 06-01-2009 09:03 AM

Manage to complete the make
 
I got this error when i tried to run the ./unreal start I hope you can help me

pippin@pippin-laptop:~/Desktop/unreal3$ ./unreal start
Starting UnrealIRCd
./unreal: 136: /home/pippin/Desktop/unreal3: Permission denied
Possible error encountered (IRCd seemingly not started)
=====================================================
Check above for possible errors, and this output of
ircd.log. If you cannot solve the problem, read
Unreal.nfo on where to get support
=====================================================
tail: cannot open `/home/pippin/Desktop/unreal3/ircd.log' for reading: No such file or directory

indienick 06-01-2009 09:12 AM

Try
Code:

$ sudo ./unreal start
as it is complaining about not being able to open a file.

yeo-yeo 06-01-2009 09:25 AM

When i did:

sudo ./unreal start


I still got the same error.

I can even find ircd.log in the directory.
I also can't find any file named command.so
But I found l_command.c
Could that relate to the problem?

AlucardZero 06-01-2009 10:08 AM

No, do not sudo it! Don't IRC as root and really don't IRCd as root!

Your permissions look wrong. What are the permissions on /home/pippin/Desktop/unreal3 and the files in it? /home/pippin/Desktop/unreal3/unreal needs to be executable by you, and every folder on the path down to /home/pippin/Desktop/unreal3 needs to be readable and executable (meaning you can traverse it) to you.

yeo-yeo 06-01-2009 10:23 AM

The folder is mine. I have read, delete and execute access to the folder.
Is that any other way out of this problem?

AlucardZero 06-01-2009 10:53 AM

What are the permissions on /home/pippin/Desktop/unreal3/unreal ?

What is on line 136 of /home/pippin/Desktop/unreal3/unreal ?

Is the error different if you type
Code:

sh  /home/pippin/Desktop/unreal3/unreal start
?

yeo-yeo 06-01-2009 11:08 AM

The permissions on /home/pippin/Desktop/unreal3/unreal are write, delete and execute.

this below is line 134, 135, and 136

else
echo "Usage: unreal start|stop|rehash|restart|mkpasswd|version|gencloak"
fi


when i typed: sh /home/pippin/Desktop/unreal3/unreal start

I got the same error.

AlucardZero 06-01-2009 12:27 PM

Quote:

The permissions on /home/pippin/Desktop/unreal3/unreal are write, delete and execute.
For who? Can you paste the output of
Code:

ls -l /home/pippin/Desktop/unreal3/unreal
id

?

yeo-yeo 06-01-2009 02:45 PM

pippin@pippin-laptop:~$ ls -l /home/pippin/Unreal3.2/unreal
-rwx------ 1 pippin pippin 4104 2009-06-01 14:29 /home/pippin/Unreal3.2/unreal
pippin@pippin-laptop:~$ id
uid=1000(pippin) gid=1000(pippin) groups=4(adm),20(dialout),24(cdrom),46(plugdev),108(lpadmin),123(admin),124(sambashare),1000(pippin)




That is the output.

yeo-yeo 06-02-2009 03:40 PM

Is there anybody out there who can help me.:

I have run: sudo chmod 777 -R /home/pippin

I have also run:

make clean
make
./Config

But I am still getting the same error.


I have also have edited my unreal.conf

Can anybody help me?


All times are GMT -5. The time now is 05:08 PM.