I have a VPS with CentOS on it and am having trouble installing MediaCore. Are they any intructions or maybe a list of difference in installing to CentOS? Thanks for a wonderful product!
CentOS
12 posts Started 13 years ago by tonygp Latest reply from d3c0y
-
-
I'm in the same boat - got a VPS with CentOS on it.
Can you guys provide clear instructions on how to install it on VPS.
-
What version of CentOS are you on? getmediacore.com runs on a CentOS 4 VPS.
Essentially:
- You need to make sure that you have all of the Requirements installed (Python 2.5.x, MySQL 5.x, GCC). You'll probably have to compile your own python2.5. Google will be able to help you here. (hint: when running configure, to make sure python installs into the directory '~/local_installs` you can pass it a flag, like so: './configure --prefix=~/local_installs').
- Then you can proceed with the regular installation instructions.
-
Afterwards you'll probably want to use an Apache/mod_wsgi or Apache/fastcgi combination to deploy it.
The instructions will require that you have already installed Apache and either mod_wsgi or mod_fastcgi. If you don't already have one of the mod_* packages, you'll probably have to compile it yourself.
I've opted not to add instructions for compiling these things to the mediacore docs, to prevent the documentation from exploding. You should be able to find instructions for setting up the required packages with some Googling, though.
I wrote some blog posts last year on getting mod_wsgi set up on CentOS 4 (mostly as a reminder to myself, so they're not the clearest explanations of the installation process):
- http://getmediacore.com/blog/compiling-on-centos-4/ (CentOS does come with GCC, but by default only root can compile things, follow these directions to add another user to the group of compilers).
- http://getmediacore.com/blog/mod_wsgi-with-apache-2-on-centos-4/
-
When I type in python, it says that it's 2.4.3. I'm running CentOS 5
-
MediaCore aims to one day support Python2.4, but for the timebeing, you're going to have to install your own Python2.5 package.
-
Ok, I got the python2.5 installed and mod_wsgi installed also...
which folder do i upload to my VPS, the folder that displays website is "httpdocs"? Do I upload whole folder "MediaCore-0.8.0" to the same level as "httpdocs" or do i upload it into "httpdocs"?
thank you.
-
I'd upload it to the same level as httpdocs, that way people can't accidentally get access to all of the code.
-
Ok, sounds good, I will try that.
When I run the command to install MediaCore, i get this at the end:
"command 'gcc' failed with exit status 1"
I'm trying to google it, but maybe its something specific to MediaCore.
Thank you.
-
You'll probably have trouble googling that specific line. It's a really generic GCC failure.
There are 3 common reasons that installing mediacore would raise that error, though:
- Your user doesn't have permissions to compile things
- Compiling MySQL-Python is failing
- Compiling PIL (Python Imaging Library) is failing
Can you paste the rest of the error message? That'll help narrow it down.
-
_mysql.c:438: error: '_mysql_ResultObject' has no member named 'converter'
_mysql.c: In function '_mysql_ResultObject_traverse':
_mysql.c:450: error: '_mysql_ResultObject' has no member named 'converter'
_mysql.c:451: error: '_mysql_ResultObject' has no member named 'converter'
_mysql.c: In function '_mysql_ResultObject_clear':
_mysql.c:462: error: '_mysql_ResultObject' has no member named 'converter'
_mysql.c:462: error: '_mysql_ResultObject' has no member named 'converter'
_mysql.c:462: error: '_mysql_ResultObject' has no member named 'converter'
_mysql.c:462: error: '_mysql_ResultObject' has no member named 'converter'
_mysql.c:463: error: '_mysql_ResultObject' has no member named 'converter'
_mysql.c: In function '_mysql_ConnectionObject_Initialize':
_mysql.c:475: error: 'MYSQL' undeclared (first use in this function)
_mysql.c:475: error: 'conn' undeclared (first use in this function)
_mysql.c:500: error: '_mysql_ConnectionObject' has no member named 'converter'
_mysql.c:501: error: '_mysql_ConnectionObject' has no member named 'open'
_mysql.c:525: error: '_mysql_ConnectionObject' has no member named 'converter'
_mysql.c:547: warning: implicit declaration of function 'mysql_init'
_mysql.c:547: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c:550: warning: implicit declaration of function 'mysql_options'
_mysql.c:550: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c:550: error: 'MYSQL_OPT_CONNECT_TIMEOUT' undeclared (first use in this function)
_mysql.c:554: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c:554: error: 'MYSQL_OPT_COMPRESS' undeclared (first use in this function)
_mysql.c:555: error: 'CLIENT_COMPRESS' undeclared (first use in this function)
_mysql.c:558: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c:558: error: 'MYSQL_OPT_NAMED_PIPE' undeclared (first use in this function)
_mysql.c:560: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c:560: error: 'MYSQL_INIT_COMMAND' undeclared (first use in this function)
_mysql.c:562: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c:562: error: 'MYSQL_READ_DEFAULT_FILE' undeclared (first use in this function)
_mysql.c:564: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c:564: error: 'MYSQL_READ_DEFAULT_GROUP' undeclared (first use in this function)
_mysql.c:567: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c:567: error: 'MYSQL_OPT_LOCAL_INFILE' undeclared (first use in this function)
_mysql.c:575: warning: implicit declaration of function 'mysql_real_connect'
_mysql.c:575: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c:590: error: '_mysql_ConnectionObject' has no member named 'open'
_mysql.c: In function '_mysql_ConnectionObject_traverse':
_mysql.c:671: error: '_mysql_ConnectionObject' has no member named 'converter'
_mysql.c:672: error: '_mysql_ConnectionObject' has no member named 'converter'
_mysql.c: In function '_mysql_ConnectionObject_clear':
_mysql.c:680: error: '_mysql_ConnectionObject' has no member named 'converter'
_mysql.c:680: error: '_mysql_ConnectionObject' has no member named 'converter'
_mysql.c:680: error: '_mysql_ConnectionObject' has no member named 'converter'
_mysql.c:680: error: '_mysql_ConnectionObject' has no member named 'converter'
_mysql.c:681: error: '_mysql_ConnectionObject' has no member named 'converter'
_mysql.c: In function '_mysql_ConnectionObject_close':
_mysql.c:696: error: '_mysql_ConnectionObject' has no member named 'open'
_mysql.c:698: warning: implicit declaration of function 'mysql_close'
_mysql.c:698: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c:700: error: '_mysql_ConnectionObject' has no member named 'open'
_mysql.c: In function '_mysql_ConnectionObject_affected_rows':
_mysql.c:722: error: '_mysql_ConnectionObject' has no member named 'open'
_mysql.c:723: warning: implicit declaration of function 'mysql_affected_rows'
_mysql.c:723: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c: In function '_mysql_debug':
_mysql.c:739: warning: implicit declaration of function 'mysql_debug'
_mysql.c: In function '_mysql_ConnectionObject_dump_debug_info':
_mysql.c:757: error: '_mysql_ConnectionObject' has no member named 'open'
_mysql.c:759: warning: implicit declaration of function 'mysql_dump_debug_info'
_mysql.c:759: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c: In function '_mysql_ConnectionObject_autocommit':
_mysql.c:783: warning: implicit declaration of function 'mysql_query'
_mysql.c:783: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c: In function '_mysql_ConnectionObject_commit':
_mysql.c:806: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c: In function '_mysql_ConnectionObject_rollback':
_mysql.c:828: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c: In function '_mysql_ConnectionObject_errno':
_mysql.c:940: error: '_mysql_ConnectionObject' has no member named 'open'
_mysql.c:941: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c: In function '_mysql_ConnectionObject_error':
_mysql.c:956: error: '_mysql_ConnectionObject' has no member named 'open'
_mysql.c:957: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c:957: warning: passing argument 1 of 'PyString_FromString' makes pointer from integer without a cast
_mysql.c: In function '_mysql_escape_string':
_mysql.c:981: warning: implicit declaration of function 'mysql_escape_string'
_mysql.c: In function '_mysql_escape':
_mysql.c:1088: error: '_mysql_ConnectionObject' has no member named 'converter'
_mysql.c: In function '_mysql_ResultObject_describe':
_mysql.c:1168: error: 'MYSQL_FIELD' undeclared (first use in this function)
_mysql.c:1168: error: 'fields' undeclared (first use in this function)
_mysql.c:1171: error: '_mysql_ConnectionObject' has no member named 'open'
_mysql.c:1172: error: '_mysql_ResultObject' has no member named 'result'
_mysql.c:1173: error: '_mysql_ResultObject' has no member named 'result'
_mysql.c:1184: warning: implicit declaration of function 'IS_NOT_NULL'
_mysql.c: In function '_mysql_ResultObject_field_flags':
_mysql.c:1204: error: 'MYSQL_FIELD' undeclared (first use in this function)
_mysql.c:1204: error: 'fields' undeclared (first use in this function)
_mysql.c:1207: error: '_mysql_ConnectionObject' has no member named 'open'
_mysql.c:1208: error: '_mysql_ResultObject' has no member named 'result'
_mysql.c:1209: error: '_mysql_ResultObject' has no member named 'result'
_mysql.c: At top level:
_mysql.c:1250: error: expected declaration specifiers or '...' before 'MYSQL_ROW'
_mysql.c: In function '_mysql_row_to_tuple':
_mysql.c:1256: error: '_mysql_ResultObject' has no member named 'result'
_mysql.c:1258: warning: implicit declaration of function 'mysql_fetch_lengths'
_mysql.c:1258: error: '_mysql_ResultObject' has no member named 'result'
_mysql.c:1258: warning: assignment makes pointer from integer without a cast
_mysql.c:1261: error: '_mysql_ResultObject' has no member named 'converter'
_mysql.c:1262: error: 'row' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1275: error: expected declaration specifiers or '...' before 'MYSQL_ROW'
_mysql.c: In function '_mysql_row_to_dict':
_mysql.c:1280: error: 'MYSQL_FIELD' undeclared (first use in this function)
_mysql.c:1280: error: 'fields' undeclared (first use in this function)
_mysql.c:1282: error: '_mysql_ResultObject' has no member named 'result'
_mysql.c:1284: error: '_mysql_ResultObject' has no member named 'result'
_mysql.c:1284: warning: assignment makes pointer from integer without a cast
_mysql.c:1285: error: '_mysql_ResultObject' has no member named 'result'
_mysql.c:1288: error: '_mysql_ResultObject' has no member named 'converter'
_mysql.c:1289: error: 'row' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1314: error: expected declaration specifiers or '...' before 'MYSQL_ROW'
_mysql.c: In function '_mysql_row_to_dict_old':
_mysql.c:1319: error: 'MYSQL_FIELD' undeclared (first use in this function)
_mysql.c:1319: error: 'fields' undeclared (first use in this function)
_mysql.c:1321: error: '_mysql_ResultObject' has no member named 'result'
_mysql.c:1323: error: '_mysql_ResultObject' has no member named 'result'
_mysql.c:1323: warning: assignment makes pointer from integer without a cast
_mysql.c:1324: error: '_mysql_ResultObject' has no member named 'result'
_mysql.c:1327: error: '_mysql_ResultObject' has no member named 'converter'
_mysql.c:1328: error: 'row' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:1350: error: expected declaration specifiers or '...' before 'MYSQL_ROW'
_mysql.c: In function '_mysql__fetch_row':
_mysql.c:1361: error: 'MYSQL_ROW' undeclared (first use in this function)
_mysql.c:1361: error: expected ';' before 'row'
_mysql.c:1365: error: '_mysql_ResultObject' has no member named 'use'
_mysql.c:1366: error: 'row' undeclared (first use in this function)
_mysql.c:1366: warning: implicit declaration of function 'mysql_fetch_row'
_mysql.c:1366: error: '_mysql_ResultObject' has no member named 'result'
_mysql.c:1369: error: '_mysql_ResultObject' has no member named 'result'
_mysql.c:1372: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c:1380: error: too many arguments to function 'convert_row'
_mysql.c: In function '_mysql_ResultObject_fetch_row':
_mysql.c:1404: error: expected declaration specifiers or '...' before 'MYSQL_ROW'
_mysql.c:1419: error: '_mysql_ConnectionObject' has no member named 'open'
_mysql.c:1431: error: '_mysql_ResultObject' has no member named 'use'
_mysql.c:1445: warning: implicit declaration of function 'mysql_num_rows'
_mysql.c:1445: error: '_mysql_ResultObject' has no member named 'result'
_mysql.c: In function '_mysql_ConnectionObject_character_set_name':
_mysql.c:1512: error: '_mysql_ConnectionObject' has no member named 'open'
_mysql.c: In function '_mysql_get_client_info':
_mysql.c:1603: warning: implicit declaration of function 'mysql_get_client_info'
_mysql.c:1603: warning: passing argument 1 of 'PyString_FromString' makes pointer from integer without a cast
_mysql.c: In function '_mysql_ConnectionObject_get_host_info':
_mysql.c:1617: error: '_mysql_ConnectionObject' has no member named 'open'
_mysql.c:1618: warning: implicit declaration of function 'mysql_get_host_info'
_mysql.c:1618: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c:1618: warning: passing argument 1 of 'PyString_FromString' makes pointer from integer without a cast
_mysql.c: In function '_mysql_ConnectionObject_get_proto_info':
_mysql.c:1632: error: '_mysql_ConnectionObject' has no member named 'open'
_mysql.c:1633: warning: implicit declaration of function 'mysql_get_proto_info'
_mysql.c:1633: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c: In function '_mysql_ConnectionObject_get_server_info':
_mysql.c:1647: error: '_mysql_ConnectionObject' has no member named 'open'
_mysql.c:1648: warning: implicit declaration of function 'mysql_get_server_info'
_mysql.c:1648: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c:1648: warning: passing argument 1 of 'PyString_FromString' makes pointer from integer without a cast
_mysql.c: In function '_mysql_ConnectionObject_info':
_mysql.c:1664: error: '_mysql_ConnectionObject' has no member named 'open'
_mysql.c:1665: warning: implicit declaration of function 'mysql_info'
_mysql.c:1665: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c:1665: warning: assignment makes pointer from integer without a cast
_mysql.c: In function '_mysql_ConnectionObject_insert_id':
_mysql.c:1697: error: 'my_ulonglong' undeclared (first use in this function)
_mysql.c:1697: error: expected ';' before 'r'
_mysql.c:1699: error: '_mysql_ConnectionObject' has no member named 'open'
_mysql.c:1701: error: 'r' undeclared (first use in this function)
_mysql.c:1701: warning: implicit declaration of function 'mysql_insert_id'
_mysql.c:1701: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c: In function '_mysql_ConnectionObject_kill':
_mysql.c:1718: error: '_mysql_ConnectionObject' has no member named 'open'
_mysql.c:1720: warning: implicit declaration of function 'mysql_kill'
_mysql.c:1720: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c: In function '_mysql_ConnectionObject_field_count':
_mysql.c:1739: error: '_mysql_ConnectionObject' has no member named 'open'
_mysql.c:1741: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c: In function '_mysql_ResultObject_num_fields':
_mysql.c:1756: error: '_mysql_ConnectionObject' has no member named 'open'
_mysql.c:1757: error: '_mysql_ResultObject' has no member named 'result'
_mysql.c: In function '_mysql_ResultObject_num_rows':
_mysql.c:1772: error: '_mysql_ConnectionObject' has no member named 'open'
_mysql.c:1773: error: '_mysql_ResultObject' has no member named 'result'
_mysql.c: In function '_mysql_ConnectionObject_ping':
_mysql.c:1802: error: '_mysql_ConnectionObject' has no member named 'open'
_mysql.c:1803: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c:1805: warning: implicit declaration of function 'mysql_ping'
_mysql.c:1805: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c: In function '_mysql_ConnectionObject_query':
_mysql.c:1826: error: '_mysql_ConnectionObject' has no member named 'open'
_mysql.c:1828: warning: implicit declaration of function 'mysql_real_query'
_mysql.c:1828: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c: In function '_mysql_ConnectionObject_select_db':
_mysql.c:1856: error: '_mysql_ConnectionObject' has no member named 'open'
_mysql.c:1858: warning: implicit declaration of function 'mysql_select_db'
_mysql.c:1858: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c: In function '_mysql_ConnectionObject_shutdown':
_mysql.c:1877: error: '_mysql_ConnectionObject' has no member named 'open'
_mysql.c:1879: warning: implicit declaration of function 'mysql_shutdown'
_mysql.c:1879: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c: In function '_mysql_ConnectionObject_stat':
_mysql.c:1904: error: '_mysql_ConnectionObject' has no member named 'open'
_mysql.c:1906: warning: implicit declaration of function 'mysql_stat'
_mysql.c:1906: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c:1906: warning: assignment makes pointer from integer without a cast
_mysql.c: In function '_mysql_ConnectionObject_store_result':
_mysql.c:1927: error: '_mysql_ConnectionObject' has no member named 'open'
_mysql.c:1928: error: '_mysql_ConnectionObject' has no member named 'converter'
_mysql.c:1937: error: '_mysql_ResultObject' has no member named 'result'
_mysql.c: In function '_mysql_ConnectionObject_thread_id':
_mysql.c:1966: error: '_mysql_ConnectionObject' has no member named 'open'
_mysql.c:1968: warning: implicit declaration of function 'mysql_thread_id'
_mysql.c:1968: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c: In function '_mysql_ConnectionObject_use_result':
_mysql.c:1988: error: '_mysql_ConnectionObject' has no member named 'open'
_mysql.c:1989: error: '_mysql_ConnectionObject' has no member named 'converter'
_mysql.c:1998: error: '_mysql_ResultObject' has no member named 'result'
_mysql.c: In function '_mysql_ConnectionObject_dealloc':
_mysql.c:2016: error: '_mysql_ConnectionObject' has no member named 'open'
_mysql.c: In function '_mysql_ConnectionObject_repr':
_mysql.c:2028: error: '_mysql_ConnectionObject' has no member named 'open'
_mysql.c:2029: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c: In function '_mysql_ResultObject_data_seek':
_mysql.c:2047: error: '_mysql_ConnectionObject' has no member named 'open'
_mysql.c:2048: warning: implicit declaration of function 'mysql_data_seek'
_mysql.c:2048: error: '_mysql_ResultObject' has no member named 'result'
_mysql.c: In function '_mysql_ResultObject_row_seek':
_mysql.c:2061: error: 'MYSQL_ROW_OFFSET' undeclared (first use in this function)
_mysql.c:2061: error: expected ';' before 'r'
_mysql.c:2063: error: '_mysql_ConnectionObject' has no member named 'open'
_mysql.c:2064: error: '_mysql_ResultObject' has no member named 'use'
_mysql.c:2069: error: 'r' undeclared (first use in this function)
_mysql.c:2069: warning: implicit declaration of function 'mysql_row_tell'
_mysql.c:2069: error: '_mysql_ResultObject' has no member named 'result'
_mysql.c:2070: warning: implicit declaration of function 'mysql_row_seek'
_mysql.c:2070: error: '_mysql_ResultObject' has no member named 'result'
_mysql.c: In function '_mysql_ResultObject_row_tell':
_mysql.c:2082: error: 'MYSQL_ROW_OFFSET' undeclared (first use in this function)
_mysql.c:2082: error: expected ';' before 'r'
_mysql.c:2084: error: '_mysql_ConnectionObject' has no member named 'open'
_mysql.c:2085: error: '_mysql_ResultObject' has no member named 'use'
_mysql.c:2090: error: 'r' undeclared (first use in this function)
_mysql.c:2090: error: '_mysql_ResultObject' has no member named 'result'
_mysql.c:2091: error: '_mysql_ResultObject' has no member named 'result'
_mysql.c: In function '_mysql_ResultObject_dealloc':
_mysql.c:2099: warning: implicit declaration of function 'mysql_free_result'
_mysql.c:2099: error: '_mysql_ResultObject' has no member named 'result'
_mysql.c: At top level:
_mysql.c:2330: error: '_mysql_ConnectionObject' has no member named 'open'
_mysql.c:2337: error: '_mysql_ConnectionObject' has no member named 'converter'
_mysql.c:2344: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c:2351: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c:2358: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c:2421: error: '_mysql_ResultObject' has no member named 'converter'
_mysql.c:2421: error: initializer element is not constant
_mysql.c:2421: error: (near initialization for '_mysql_ResultObject_memberlist[0].offset')
_mysql.c: In function '_mysql_ConnectionObject_getattr':
_mysql.c:2443: error: '_mysql_ConnectionObject' has no member named 'open'
error: Setup script exited with error: command 'gcc' failed with exit status 1 -
Maybe I missed out on this step: http://getmediacore.com/docs/install/index.html#step-0-1-1-requirements-installation-on-ubuntu-9-04
But I'm not using Ubuntu, and not sure how to get some of those libraries for CentOS, or what equivalents would be.
-
Ok so if you are getting that error it's probably because you dont have mysql development libraries installed.
Maybe this is an x64 issue because i didnt have this error on my 32bit system and if you just have the 32 bit package installed it doesnt seem to work.Run this command on RHE / CentOS 5 (on a 64bit system) to fix it up:
yum install mysql-devel.x86_64or
(32 bit systems if you need it)
yum install mysql-devel.i386
Reply
You must log in to post.