LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-30-2009, 01:46 AM   #1
adityasharma
Member
 
Registered: Jun 2009
Location: Noida
Distribution: RHEL 5
Posts: 39

Rep: Reputation: 16
Unhappy aria2, ‘assert’ was not declared in this scope , compiler error


hi all

i am trying to install aria2 on my machine
OS : RHEL5
iam able to configure it but when it comes to make it i am gettign this error not sure what it really means so just added #include <asset.h> in theAbstractDiskWriter.cc still no go any help would be appricialted

[root@localhost aria2-0.1.0]# make install
Making install in src
make[1]: Entering directory `/home/working/Desktop/aria2-0.1.0/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -Wall -D_FILE_OFFSET_BITS=64 -g -O2 -MT libaria2c_a-AbstractDiskWriter.o -MD -MP -MF ".deps/libaria2c_a-AbstractDiskWriter.Tpo" -c -o libaria2c_a-AbstractDiskWriter.o `test -f 'AbstractDiskWriter.cc' || echo './'`AbstractDiskWriter.cc; \
then mv -f ".deps/libaria2c_a-AbstractDiskWriter.Tpo" ".deps/libaria2c_a-AbstractDiskWriter.Po"; else rm -f ".deps/libaria2c_a-AbstractDiskWriter.Tpo"; exit 1; fi
AbstractDiskWriter.cc: In member function ‘void AbstractDiskWriter::createFile(std::string, int)’:
AbstractDiskWriter.cc:59: error: ‘assert’ was not declared in this scope
make[1]: *** [libaria2c_a-AbstractDiskWriter.o] Error 1
make[1]: Leaving directory `/home/working/Desktop/aria2-0.1.0/src'
make: *** [install-recursive] Error 1
 
Old 07-30-2009, 09:03 AM   #2
adityasharma
Member
 
Registered: Jun 2009
Location: Noida
Distribution: RHEL 5
Posts: 39

Original Poster
Rep: Reputation: 16
Unhappy

Quote:
Originally Posted by adityasharma View Post
hi all

i am trying to install aria2 on my machine
OS : RHEL5
iam able to configure it but when it comes to make it i am gettign this error not sure what it really means so just added #include <asset.h> in theAbstractDiskWriter.cc still no go any help would be appricialted

[root@localhost aria2-0.1.0]# make install
Making install in src
make[1]: Entering directory `/home/working/Desktop/aria2-0.1.0/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -Wall -D_FILE_OFFSET_BITS=64 -g -O2 -MT libaria2c_a-AbstractDiskWriter.o -MD -MP -MF ".deps/libaria2c_a-AbstractDiskWriter.Tpo" -c -o libaria2c_a-AbstractDiskWriter.o `test -f 'AbstractDiskWriter.cc' || echo './'`AbstractDiskWriter.cc; \
then mv -f ".deps/libaria2c_a-AbstractDiskWriter.Tpo" ".deps/libaria2c_a-AbstractDiskWriter.Po"; else rm -f ".deps/libaria2c_a-AbstractDiskWriter.Tpo"; exit 1; fi
AbstractDiskWriter.cc: In member function ‘void AbstractDiskWriter::createFile(std::string, int)’:
AbstractDiskWriter.cc:59: error: ‘assert’ was not declared in this scope
make[1]: *** [libaria2c_a-AbstractDiskWriter.o] Error 1
make[1]: Leaving directory `/home/working/Desktop/aria2-0.1.0/src'
make: *** [install-recursive] Error 1

any hep guys
 
Old 07-30-2009, 09:19 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,657

Rep: Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281
aria2-0.1.0.tar.bz2 : Thu Feb 16 2006 17:35

aria2-1.4.1.tar.bz2 : Sun Jun 07 2009 13:03
seems to be the current stable version.
http://sourceforge.net/projects/aria2/files/
http://sourceforge.net/projects/aria...r.bz2/download

Probably no reason to use the oldest version = 0.1 ?
( And version 1.5.x is buggy )
" 1.4.1 " will compile with no errors.
CentOS 5 was used. ( = Redhat EL 5 ).
.....

Last edited by knudfl; 07-30-2009 at 04:28 PM.
 
Old 07-30-2009, 11:46 PM   #4
adityasharma
Member
 
Registered: Jun 2009
Location: Noida
Distribution: RHEL 5
Posts: 39

Original Poster
Rep: Reputation: 16
Unhappy

Quote:
Originally Posted by knudfl View Post
aria2-0.1.0.tar.bz2 : Thu Feb 16 2006 17:35

aria2-1.4.1.tar.bz2 : Sun Jun 07 2009 13:03
seems to be the current stable version.
http://sourceforge.net/projects/aria2/files/
http://sourceforge.net/projects/aria...r.bz2/download

Probably no reason to use the oldest version = 0.1 ?
( And version 1.5.x is buggy )
" 1.4.1 " will compile with no errors.
CentOS 5 was used. ( = Redhat EL 5 ).
.....
well downloaded the aria2-0.1.0.tar.bz2 and still getting the below error

aditya [working@localhost aria2-0.1.0]$make install
Making install in src
make[1]: Entering directory `/home/working/Desktop/aria2-0.1.0/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -Wall -D_FILE_OFFSET_BITS=64 -g -O2 -MT libaria2c_a-AbstractDiskWriter.o -MD -MP -MF ".deps/libaria2c_a-AbstractDiskWriter.Tpo" -c -o libaria2c_a-AbstractDiskWriter.o `test -f 'AbstractDiskWriter.cc' || echo './'`AbstractDiskWriter.cc; \
then mv -f ".deps/libaria2c_a-AbstractDiskWriter.Tpo" ".deps/libaria2c_a-AbstractDiskWriter.Po"; else rm -f ".deps/libaria2c_a-AbstractDiskWriter.Tpo"; exit 1; fi
AbstractDiskWriter.cc: In member function ‘void AbstractDiskWriter::createFile(std::string, int)’:
AbstractDiskWriter.cc:59: error: ‘assert’ was not declared in this scope
make[1]: *** [libaria2c_a-AbstractDiskWriter.o] Error 1
make[1]: Leaving directory `/home/working/Desktop/aria2-0.1.0/src'
make: *** [install-recursive] Error 1
 
Old 07-31-2009, 05:51 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,657

Rep: Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281
Quote:
downloaded the aria2-0.1.0.tar.bz2
I hope, you mean aria2-1.4.1.tar.bz2.

That is the one to use ! !
 
  


Reply

Tags
error


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling tesseract-2.03: error: ‘INT32’ was not declared in this scope J_Szucs Linux - Software 10 03-05-2009 02:35 PM
Errors while compiling Faust: "PATH_MAX was not declared in this scope" prasadbrg Linux - Software 6 12-15-2008 01:04 AM
/ArgParser.cpp:207: error: 'atoi' was not declared in this scope Jane2008 Linux - Newbie 2 11-07-2008 09:23 AM
Error Prompt - 'Execute_command was not declared in this scope. Please help! thhuang Linux - Newbie 1 11-05-2007 12:38 AM
ltoa not declared in the scope lucky6969b Programming 3 12-23-2005 08:44 AM


All times are GMT -5. The time now is 04:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration