Ruby on on rails on Jailed shell cpanel on centos

时间:2016-01-09 11:11:35

标签: ruby-on-rails ruby linux shell centos

我正在尝试在SSH上使用带有Jailed Shell的Cpanel在共享服务器上的rails上安装ruby。 我是这个

@interface NSNotificationCenter (Tracking)
@property (nonatomic) NSMutableArray <NSDictionary *> * observers;
@end


#import <JRSwizzle/JRSwizzle.h>
@implementation NSNotificationCenter (Tracking)

+ (void)initialize {
    [super initialize];
    [self jr_swizzleMethod:@selector(addObserver:selector:name:object:)
                withMethod:@selector(SNaddObserver:selector:name:object:)
                     error:nil];
}

- (void)SNaddObserver:(id)observer selector:(SEL)aSelector name:(NSString *)aName object:(id)anObject {
    NSDictionary *obs = @{@"observer"   :observer,
                          @"selector"   :NSStringFromSelector(aSelector),
                          @"name"       :aName
                          };
    DDLogDebug(@"observer added : %@", obs);
    [[self observers] addObject:obs];
    [self SNaddObserver:observer selector:aSelector name:aName object:anObject];
}

- (NSMutableArray <NSDictionary *> *) observers{
    static NSMutableArray <NSDictionary *> * _observers = nil;
    if (!_observers) {
        _observers = [NSMutableArray new];
    }
    return _observers;
}

@end
服务器启动时

下载Ruby tar包后,我在文件夹内导航并运行命令

-jailshell: rbenv: command not found

make

make install

一次,它没有工作 甚至试过这个

./configure --prefix=/usr/local/ruby -exec-prefix=/usr/local/ruby

命令./configure --prefix=/usr/local/ -exec-prefix=/usr/local/ 会产生以下结果

make install

我的服务提供商表示,他可以为我提供最高级别的访问权限。

尝试从CPANEL Ruby安装它来安装它。也没有运气。

安装ruby,rvm和rails的任何变通方法?

感谢。

P.S。尝试了很多在线发布的方法,没有运气。

0 个答案:

没有答案