由于LDFLAGS和CPPFLAGS,openssl在osx上安装失败

时间:2018-08-17 11:07:23

标签: openssl

当我运行brew install openssl时,出现以下错误:

export const ROUTES: RouteInfo[] = [
    { path: 'notes',  title: 'Notes',  icon: 'ti-comment', class: '', role:[user, admin] },
    { path: 'contacts', title: 'Contacts',  icon:'ti-info', class: '', role:[user, admin] },
    { path: 'users', title: 'Users',  icon:'ti-user', class: '', role:[user, admin] },
    { path: 'user_notes', title: 'Notes (World)',  icon:'ti-world', class: '', role:[user, admin] },
    { path: 'admins', title: 'Administration',  icon:'ti-server', class: '', role:[admin] }
];

@Component({
  ...
})

export class SidebarComponent implements OnInit {
    ...
    currentRole: string; // set value in it in constructor

    constructor(public authService:AuthService) {
        this.currentRole = 'user'; // change value on the basis of login
    }

    ngOnInit() {
        this.menuItems = ROUTES.filter(menuItem => menuItem.role.includes(this.currentRole));
    }
}

如何继续执行这些说明,以便我可以成功运行opnessl?

0 个答案:

没有答案